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
libstdc++: Remove unused alias template in std::optional
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
typename6.C
blob
18bce27019fdff1145ef7f1b28010f9bb2ce6069
1
// { dg-do assemble }
2
3
template <class T>
4
struct A
5
{
6
typedef T A_Type;
7
};
8
9
10
template <class U>
11
struct B : public A<U>
12
{
13
A_Type Func(); // { dg-error "does not name a type" "err" }
14
// { dg-message "note" "note" { target *-*-* } .-1 }
15
};
16
17
template <class U>
18
A<U>::A_Type B<U>::Func() // { dg-error "typename" } function
19
{
20
}