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
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-static5.C
blob
d161cf5445c5dddcf63b4853f02a28adf26c09ad
1
// { dg-do compile { target c++11 } }
2
3
template <class T>
4
struct A
5
{
6
constexpr static T t = T(); // { dg-error "literal" }
7
};
8
template <class T>
9
constexpr T A<T>::t;
10
11
struct B
12
{
13
~B();
14
};
15
16
B b = A<B>::t;
17