repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-static5.C
blob
a401cc0b890125f9db560008ec417df2a203c40b
1
// { dg-options -std=c++0x }
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