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
diagnostics: move output formats from diagnostic.{c,h} to their own files
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
static2.C
blob
84342be4d89221bded60b6008b39a34a3fdb4b20
1
class A;
2
3
template<int A::* P>
4
class B
5
{
6
public:
7
static int A::* const p = P; // { dg-error "25:'constexpr' needed" "" { target c++11 } }
8
// { dg-error "25:invalid in-class" "" { target c++98_only } .-1 }
9
// { dg-error "29:template parameter" "" { target c++98_only } .-2 }
10
};
11
12
class A
13
{
14
public:
15
16
int dummy;
17
18
B<&A::dummy> d;
19
};