public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28409]  New: extern "C" and anonymous namespace
@ 2006-07-17 10:26 jakub at redhat dot com
  2006-07-17 12:09 ` [Bug c++/28409] [4.2 Regression] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: jakub at redhat dot com @ 2006-07-17 10:26 UTC (permalink / raw)
  To: gcc-bugs

namespace
{
        extern "C" int shouldIbevisible()
        {
                return 101;
        }
}

extern "C" int Iamvisible()
{
        return 101;
}

Is shouldIbevisible supposed to be a visible symbol outside of the current
compilation unit, so that other cu that does say
extern "C" int shouldIbevisible();
int foo () { return shouldIbevisible(); }
would link with it?  If yes, we need to change determine_visibility and
push_namespace_with_attribs to take DECL_EXTERN_C_FUNCTION_P into account.


-- 
           Summary: extern "C" and anonymous namespace
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at redhat dot com


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-08-28 12:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-17 10:26 [Bug c++/28409] New: extern "C" and anonymous namespace jakub at redhat dot com
2006-07-17 12:09 ` [Bug c++/28409] [4.2 Regression] " pinskia at gcc dot gnu dot org
2006-07-19  0:47 ` mmitchel at gcc dot gnu dot org
2006-07-20 15:55 ` jason at gcc dot gnu dot org
2006-07-20 16:03 ` jason at gcc dot gnu dot org
2006-07-20 16:20 ` jason at gcc dot gnu dot org
2006-08-28 12:31 ` jakub at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).