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

Reply via email to