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]
Other format: [Raw text]

[C++ PATCH] Fix bug 51


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

Attachment: 51.patch
Description: Binary data

Attachment: 51.C
Description: Binary data


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