[Bug c/57574] -std=c99 inline function incorrectly has external linkage with prior static declaration
jsm28 at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Nov 29 01:30:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57574
--- Comment #1 from Joseph S. Myers <jsm28 at gcc dot gnu.org> ---
Author: jsm28
Date: Fri Nov 29 01:30:42 2013
New Revision: 205506
URL: http://gcc.gnu.org/viewcvs?rev=205506&root=gcc&view=rev
Log:
PR c/57574
c:
* c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of
an inline function following a static declaration.
testsuite:
* gcc.dg/inline-35.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/inline-35.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-decl.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list