mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-08 15:42:07 +08:00
* decl.c (grokfndecl): Also check ctype when checking for ::main().
From-SVN: r23123
This commit is contained in:
parent
925be47cd5
commit
94706a5cfc
@ -1,3 +1,7 @@
|
||||
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>
|
||||
|
||||
* decl.c (grokfndecl): ::main and __builtin_* get C linkage.
|
||||
|
@ -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
|
||||
for us here, as we check current_namespace. */
|
||||
&& DECL_CONTEXT (decl) == NULL_TREE
|
||||
&& ctype == NULL_TREE
|
||||
&& current_namespace == global_namespace)
|
||||
DECL_LANGUAGE (decl) = lang_c;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user