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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-template2.C
blob
12a8d42b31fc36aa8e9c53ad2c50d038afd6f23d
1
// { dg-do compile { target c++11 } }
2
3
template <class T> struct A
4
{
5
T t;
6
constexpr A() { } // { dg-error "::t" }
7
};
8
9
int main()
10
{
11
constexpr A<int> a; // { dg-error "A()" }
12
}