[C++, RFA] correctly detect conflicts between function and using decls

Alexandre Oliva aoliva@redhat.com
Wed Feb 23 03:15:00 GMT 2005


A bug report was filed into Red Hat's bugzilla system (URL in the
testcase below) regarding an inconsistency in detecting and reporting
conflicts between function and using declarations.  We'd reject extern
"C" matching declarations should the function declaration appear after
the using declaration, but would accept them in reverse order.

Here's the patch, containing a testcase that covers all possibilities
I could think of.  Ok to install?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cp-using-conflicts.patch
Type: text/x-patch
Size: 4667 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050223/ae88a2f4/attachment.bin>
-------------- next part --------------

-- 
Alexandre Oliva             http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}


More information about the Gcc-patches mailing list