[Bug c++/14769] [DR 426] Block extern incorrectly resolved to file-scope internal linkage object
pi3orama at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Nov 26 03:31:00 GMT 2009
------- Comment #5 from pi3orama at gmail dot com 2009-11-26 03:31 -------
How about the below C++ program? According to recent draft, the func() in //2:
is clearly "internal linkage", but g++ resolve it as external linkage.
static void func() { }
int main()
{
extern void func();
func(); // 1:
{
extern void func();
func(); //2:
}
return 0;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14769
More information about the Gcc-bugs
mailing list