[C++ PATCH] Fix bug 51

Nathan Sidwell nathan@codesourcery.com
Mon Dec 10 02:01:00 GMT 2001


Hi,
this fixes bug 51, which is an example from the std.

We'd reject declarations which had more than one specifier.
This would reject ([7.5]/4)
	extern "C" typedef void FUNC ();

This patch marks the 'extern' declspec which we add in frob_specs
so that grokdeclarator knows it comes from a language specifier.
Then grokdeclarator treats it as a 'weak' specifier which can
be overridden by another one.

booted & tested on i686-pc-linux-gnu, ok?

nathan
-- 
Dr Nathan Sidwell   ::   http://www.codesourcery.com   ::   CodeSourcery LLC
         'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 51.patch
Type: application/octet-stream
Size: 3412 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20011210/325c635b/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 51.C
Type: application/octet-stream
Size: 312 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20011210/325c635b/attachment-0001.obj>


More information about the Gcc-patches mailing list