public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/44991]  New: default argument with '<' cause compilation error
@ 2010-07-19 15:20 ogoffart at kde dot org
  2010-07-19 15:38 ` [Bug c++/44991] [4.4/4.5/4.6 Regression] " redi at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: ogoffart at kde dot org @ 2010-07-19 15:20 UTC (permalink / raw)
  To: gcc-bugs

class bar {
    void foo(bool a = 3 < 2, bool b = true) {}
};

$ g++ -c ./main.cpp
./main.cpp:2:39: error: redefinition of 'bool b'
./main.cpp:2:39: error: 'bool b' previously declared here


(This happends only if the funciton is a member function)


-- 
           Summary: default argument with '<' cause compilation error
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ogoffart at kde dot org


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


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

end of thread, other threads:[~2010-08-30 13:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-19 15:20 [Bug c++/44991] New: default argument with '<' cause compilation error ogoffart at kde dot org
2010-07-19 15:38 ` [Bug c++/44991] [4.4/4.5/4.6 Regression] " redi at gcc dot gnu dot org
2010-07-22  8:57 ` rguenth at gcc dot gnu dot org
2010-07-22  9:07 ` rguenth at gcc dot gnu dot org
2010-08-25 10:00 ` jakub at gcc dot gnu dot org
2010-08-26  6:10 ` jason at gcc dot gnu dot org
2010-08-29 19:24 ` jason at gcc dot gnu dot org
2010-08-30 13:38 ` jason at gcc dot gnu dot org
2010-08-30 13:38 ` jason at gcc dot gnu dot org
2010-08-30 13:39 ` jason 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).