repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update concepts branch to revision 131834
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
arg1.C
blob
f7a8b3150c69dc5f7aaf67865ec1c44027484983
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
};