Commit 94706a5c by Jason Merrill Committed by Jason Merrill

* decl.c (grokfndecl): Also check ctype when checking for ::main().

From-SVN: r23123
parent 925be47c
1998-10-16 Jason Merrill <jason@yorick.cygnus.com>
* decl.c (grokfndecl): Also check ctype when checking for ::main().
1998-10-15 Jason Merrill <jason@yorick.cygnus.com> 1998-10-15 Jason Merrill <jason@yorick.cygnus.com>
* decl.c (grokfndecl): ::main and __builtin_* get C linkage. * decl.c (grokfndecl): ::main and __builtin_* get C linkage.
......
...@@ -8026,6 +8026,7 @@ grokfndecl (ctype, type, declarator, orig_declarator, virtualp, flags, quals, ...@@ -8026,6 +8026,7 @@ grokfndecl (ctype, type, declarator, orig_declarator, virtualp, flags, quals,
/* context == 0 could mean global scope or not set yet; either is fine /* context == 0 could mean global scope or not set yet; either is fine
for us here, as we check current_namespace. */ for us here, as we check current_namespace. */
&& DECL_CONTEXT (decl) == NULL_TREE && DECL_CONTEXT (decl) == NULL_TREE
&& ctype == NULL_TREE
&& current_namespace == global_namespace) && current_namespace == global_namespace)
DECL_LANGUAGE (decl) = lang_c; DECL_LANGUAGE (decl) = lang_c;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment