Hi!

This is a testcase from PR60994 #c7, which got fixed with PR77812
but the testcases from that PR look different from this one, so I've tested
and committed this to trunk in order to close the PR.

2018-11-19  Jakub Jelinek  <[email protected]>

        PR c++/60994
        * g++.dg/lookup/pr60994.C: New test.

--- gcc/testsuite/g++.dg/lookup/pr60994.C.jj    2018-11-19 14:57:16.095718277 
+0100
+++ gcc/testsuite/g++.dg/lookup/pr60994.C       2018-11-19 14:55:52.138070817 
+0100
@@ -0,0 +1,13 @@
+// PR c++/60994
+// { dg-do compile }
+
+struct s
+{
+  static int i;
+};
+
+template <typename T>
+int s()
+{
+  return s::i; // { dg-bogus "is not a class" }
+}

        Jakub

Reply via email to