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
/
pr32519.C
blob
a010a5695b2a1f9b051b2cc4755909646753015b
1
// PR 32519
2
// { dg-do compile }
3
4
struct B
5
{
6
protected:
7
template <class T> void f (); // { dg-message "protected" }
8
};
9
10
struct D : public B
11
{
12
void g (B* b)
13
{
14
b->f<int> (); // { dg-error "context" }
15
}
16
};