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++/28409] [4.2 Regression] extern "C" and anonymous namespace



------- 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


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