OSDN Git Service

* parser.c (cp_parser_class_specifier): Set class location to that
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / arg1.C
1 // { dg-do compile }
2
3 // Copyright (C) 2003 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 21 Mar 2003 <nathan@codesourcery.com>
5
6 // PR 9978. We rejected a constant expression.
7   
8 enum { val = 1 };
9
10 template <class T>
11 struct Bar
12 {
13   static const int A = val;
14   static const int B = A + 1;
15 };