Message ID | 1455250844-14720-1-git-send-email-patrick@parcs.ath.cx |
---|---|
State | New |
Headers | show |
On Thu, Feb 11, 2016 at 11:20 PM, Patrick Palka <patrick@parcs.ath.cx> wrote: > Hi Jason, > > Your recent fix for PR c++/10200 seems to have fixed this longstanding > PR too. Should I add its test case to the testsuite and close the PR? Never mind, this PR is no longer resolved following the most recent changes to c++/10200.
diff --git a/gcc/testsuite/g++.dg/lookup/template4.C b/gcc/testsuite/g++.dg/lookup/template4.C new file mode 100644 index 0000000..53030d6 --- /dev/null +++ b/gcc/testsuite/g++.dg/lookup/template4.C @@ -0,0 +1,16 @@ +// PR c++/11814 + +template <typename> struct A +{ + template <typename> void foo(); +}; + +template <typename T> struct B +{ + template <typename> void foo() + { + A<T>* p; + p->foo<int>(); // { dg-error "" } + } +}; +