This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28409] [4.2 Regression] extern "C" and anonymous namespace
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jul 2006 12:09:41 -0000
- Subject: [Bug c++/28409] [4.2 Regression] extern "C" and anonymous namespace
- References: <bug-28409-138@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-07-17 12:09 -------
Here is a self contained testcase which fails at -O1 and above because
shouldIbevisible is not emitted:
namespace
{
extern "C" int shouldIbevisible()
{
return 0;
}
}
namespace t
{
extern "C" int shouldIbevisible(void);
}
int main(void)
{
return t::shouldIbevisible();
}
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |blocker
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |link-failure
Last reconfirmed|0000-00-00 00:00:00 |2006-07-17 12:09:41
date| |
Summary|extern "C" and anonymous |[4.2 Regression] extern "C"
|namespace |and anonymous namespace
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28409