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++/84702] ICE with default tmpl arg of overload set
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
non-dependent8.C
blob
369e137317c7dc1b8d4dced6d2b1da223455bbb2
1
// { dg-do compile }
2
3
// Origin: Giovanni Bajo <giovannibajo@libero.it>
4
5
// Two-phase name lookup for address of member:
6
// Detecting error during parsing
7
8
struct S
9
{
10
char i;
11
};
12
13
template<int S::*p>
14
struct X
15
{};
16
17
template <class T>
18
struct Foo
19
{
20
X<&S::i> x; // { dg-error "convert|no type" }
21
};