This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Add testcase for fixed bug 64
- To: gcc-patches at gcc dot gnu dot org
- Subject: Add testcase for fixed bug 64
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 15 Feb 2001 07:39:46 +0100
- Organization: CodeSourcery, LLC
PR-64 appears to be fixed in both mainline and branch.
Is the above OK to install?
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com
Index: name-lookup-1.C
===================================================================
RCS file: name-lookup-1.C
diff -N name-lookup-1.C
*** /dev/null Tue May 5 13:32:27 1998
--- name-lookup-1.C Wed Feb 14 22:34:27 2001
***************
*** 0 ****
--- 1,14 ----
+ // Origin: GerhardTonn@gmx.de
+ // { dg-prms-id 64 }
+ // { dg-do compile }
+
+ struct super {
+ union {
+ int myName; //{ dg-bogus "conflicts" "bogus name lookup" }
+ void* secondMember;
+ };
+ };
+
+ struct sub : super {
+ int myName() { return 1; }
+ };