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++/85765 - SFINAE and non-type default template arg.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist-ctor1.C
blob
bc6d272023468fb149ef46e7f83dbe427a018f41
1
// PR c++/52905
2
// { dg-do compile { target c++11 } }
3
4
#include <initializer_list>
5
6
enum E { e1, e2 };
7
struct A
8
{
9
A(std::initializer_list<E>); // { dg-message "A::A" }
10
A(int, E); // { dg-message "A::A" }
11
};
12
13
A a{e1,2}; // { dg-error "" }