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++/85553
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-targ.C
blob
98bb502249af49d97f879d5749e27d11110899e0
1
// { dg-do compile { target c++11 } }
2
3
struct A
4
{
5
constexpr operator double() { return 1.0; }
6
};
7
8
template <int I>
9
struct B
10
{ };
11
12
constexpr A a { };
13
B<a> b; // { dg-error "template argument|converted constant" }