repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ipa-cp: Perform operations in the appropriate types (PR 118097)
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
error37.C
blob
7f1f9ed783d6846c10829720e688a0f7a3941f68
1
// { dg-do compile }
2
// PR C++/29388
3
// We used to ICE in is_ancestor because we would use int as the context of foo
4
// but that is invalid.
5
6
template<int> struct A
7
{
8
typedef int T;
9
void foo();
10
};
11
12
template<int N> void A<N>::T::foo() {} // { dg-error "" }