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
2017-06-14 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
typedef22.C
blob
97d7e8b36055cf656dc944ca694a5ae2e3b7e0ee
1
// Contributed by Dodji Seketeli <dodji@redhat.com>
2
// Origin: PR c++/14777
3
// { dg-do compile }
4
5
template <typename T>
6
struct B
7
{
8
protected:
9
typedef int M; // { dg-message "protected" }
10
};
11
12
template <typename T>
13
struct A : B<T> {
14
typedef typename B<char>::M N; // { dg-error "context" }
15
A (int = N ());
16
};
17
18
A<int> a = A<int> ();