This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Add testcase for fixed bug 64



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]