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
Remove not needed __builtin_expect due to malloc predictor.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
paren3.C
blob
850be2c27addb65fbb69f860cbbdf691033b6e72
1
// PR c++/70106
2
// { dg-do compile { target c++14 } }
3
4
template <typename>
5
struct A
6
{
7
int x;
8
9
void foo () const {
10
(A::x);
11
}
12
};
13
14
struct B
15
{
16
int x;
17
18
template <typename>
19
void foo () const {
20
(B::x);
21
}
22
};
23
24
void
25
foo ()
26
{
27
A<int> ().foo ();
28
B ().foo<int> ();
29
}
30