public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9924: [3.2/3.3/3.4 regression] Multiple using statements for builtin functions not allowed
@ 2003-03-11 23:06 jason
  0 siblings, 0 replies; 3+ messages in thread
From: jason @ 2003-03-11 23:06 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, jason, yaqb

Synopsis: [3.2/3.3/3.4 regression] Multiple using statements for builtin functions not allowed

State-Changed-From-To: analyzed->feedback
State-Changed-By: jason
State-Changed-When: Tue Mar 11 23:06:26 2003
State-Changed-Why:
    I'm not convinced this is a bug.  namespace std is reserved to
    the implementation.  Furthermore, if you fix the declaration
    of llabs to
    
        namespace NS {
          extern "C" long long llabs(long long x);
        }
    
        namespace std {
            using NS::llabs;
            using NS::llabs;
        }
    
    the testcase compiles fine.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9924


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

* Re: c++/9924: [3.2/3.3/3.4 regression] Multiple using statements for builtin functions not allowed
@ 2003-03-11 22:59 jason
  0 siblings, 0 replies; 3+ messages in thread
From: jason @ 2003-03-11 22:59 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, jason, nobody, yaqb

Synopsis: [3.2/3.3/3.4 regression] Multiple using statements for builtin functions not allowed

Responsible-Changed-From-To: unassigned->jason
Responsible-Changed-By: jason
Responsible-Changed-When: Tue Mar 11 22:59:37 2003
Responsible-Changed-Why:
    got it

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9924


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

* Re: c++/9924: [3.2/3.3/3.4 regression] Multiple using statements for builtin functions not allowed
@ 2003-03-03 19:47 bangerth
  0 siblings, 0 replies; 3+ messages in thread
From: bangerth @ 2003-03-03 19:47 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, yaqb

Old Synopsis: Multiple  using __gnu_cxx::llabs breaks compilation.
New Synopsis: [3.2/3.3/3.4 regression] Multiple using statements for builtin functions not allowed

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Mon Mar  3 19:47:23 2003
State-Changed-Why:
    Confirmed. The problem has nothing to do with namespace
    __gnu_cxx, but indeed something with builtins. This
    code also shows the problem:
    -------------------------
    namespace NS {
        void llabs(long long x);
    }
    
    namespace std {
        using NS::llabs;
        using NS::llabs;
    }
    ------------------
    g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
    x.cc:7: error: `llabs' is already declared in this scope
    
    If llabs is renamed to foo, then the code compiles cleanly.
    This seems like a bug.
    
    The problem occurs with 3.2, 3.3, and 3.4 branches. It
    doesn't happen with 3.0.
    
    W.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9924


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

end of thread, other threads:[~2003-03-11 23:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-11 23:06 c++/9924: [3.2/3.3/3.4 regression] Multiple using statements for builtin functions not allowed jason
  -- strict thread matches above, loose matches on Subject: below --
2003-03-11 22:59 jason
2003-03-03 19:47 bangerth

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