/cp
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / paren3.C
blob850be2c27addb65fbb69f860cbbdf691033b6e72
1 // PR c++/70106
2 // { dg-do compile { target c++14 } }
4 template <typename>
5 struct A
7   int x;
9   void foo () const {
10     (A::x);
11   }
14 struct B
16   int x;
18   template <typename>
19   void foo () const {
20     (B::x);
21   }
24 void
25 foo ()
27   A<int> ().foo ();
28   B ().foo<int> ();