This is the mail archive of the gcc-bugs@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]

[Bug c++/7313] variable declared but not defined with "C" linkage placed in enclosing namespace at link time


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7313

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-02 00:31:49 UTC ---
Testcase:
namespace foo
{
    extern "C" int bar;
    extern "C" int baz();
}

namespace foo
{
    int bar = -1;
    int baz() { return -1; }
}


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