diff mbox

Add PR c++/11814 test case to testsuite

Message ID 1455250844-14720-1-git-send-email-patrick@parcs.ath.cx
State New
Headers show

Commit Message

Patrick Palka Feb. 12, 2016, 4:20 a.m. UTC
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?

gcc/testsuite/ChangeLog:

	PR c++/11814
	* g++.dg/lookup/template4.C: New test.
---
 gcc/testsuite/g++.dg/lookup/template4.C | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 gcc/testsuite/g++.dg/lookup/template4.C

Comments

Patrick Palka Feb. 18, 2016, 6:37 p.m. UTC | #1
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 mbox

Patch

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 "" }
+    }
+};
+