public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/38005]  New: inconsistent precedence of operators in namespaces
@ 2008-11-03 17:45 c dot hite at rtsgroup dot net
  2008-11-03 17:48 ` [Bug c++/38005] " c dot hite at rtsgroup dot net
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: c dot hite at rtsgroup dot net @ 2008-11-03 17:45 UTC (permalink / raw)
  To: gcc-bugs

(see #1)
G++ seems to use different rules than sun for determining which operator is
called.  G++ gives an operator in the current namespace priority over another
with more specific parameters in the global scope. 

(see #2)
G++ does something very strange.  When the current namespace contains the same
operator overloaded for completely different parameters, the precedence of
other operators changes.

In all cases Sun's compiler prints "child".


-- 
           Summary: inconsistent precedence of operators in namespaces
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: c dot hite at rtsgroup dot net
 GCC build triplet: c24d5e9bda8759e6c069ef5eafbb8fe0
  GCC host triplet: gcc version 4.2.3
GCC target triplet: i686-pc-linux-gnu


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


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

end of thread, other threads:[~2008-11-04 17:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-03 17:45 [Bug c++/38005] New: inconsistent precedence of operators in namespaces c dot hite at rtsgroup dot net
2008-11-03 17:48 ` [Bug c++/38005] " c dot hite at rtsgroup dot net
2008-11-03 17:49 ` c dot hite at rtsgroup dot net
2008-11-03 17:53 ` c dot hite at rtsgroup dot net
2008-11-04 10:32 ` rguenth at gcc dot gnu dot org
2008-11-04 10:49 ` c dot hite at rtsgroup dot net
2008-11-04 12:52 ` rguenth at gcc dot gnu dot org
2008-11-04 13:38 ` c dot hite at rtsgroup dot net
2008-11-04 14:23 ` schwab at suse dot de
2008-11-04 15:16 ` rguenth at gcc dot gnu dot org
2008-11-04 17:11 ` c dot hite at rtsgroup dot net

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