repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-template2.C
blob
71eb559a24c5607df63f2df7bd578ad7bb3c247f
1
// { dg-do compile { target c++11 } }
2
3
template <class T> struct A
4
{
5
T t;
6
constexpr A() { } // { dg-error "::t" "" { target c++17_down } }
7
};
8
9
int main()
10
{
11
constexpr A<int> a; // { dg-error "A()" }
12
}