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
Fix PR c++/69139 (deduction failure with trailing return type)
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-ice6.C
blob
30e0a643bcb135c4f33d4f8a501df4683ca28276
1
// PR c++/51327
2
// { dg-do compile { target c++11 } }
3
4
struct A
5
{
6
A(int);
7
};
8
9
struct B : A {}; // { dg-error "no matching" }
10
11
constexpr int foo(B) { return 0; } // { dg-error "invalid type" }