This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/12427] New: Compiler misses error, gets lost. big time


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: Compiler misses error, gets lost. big time
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: igodard at pacbell dot net
                CC: gcc-bugs at gcc dot gnu dot org

The actual problem in the test case is a missing constructor argument at testRecurrence.cc:38. Corrected, that line should say:
    Recurrence<std::bidirectional_iterator_tag, int, Inc, Dec> r3(0, Inc(),
        Dec());
and with that the code compiles without error. However, when the "0," argument is omitted as in the test case, the compiler fails to flag the error and gets way lost in later code.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]