[Bug c++/12427] New: Compiler misses error, gets lost. big time
igodard at pacbell dot net
gcc-bugzilla@gcc.gnu.org
Sat Sep 27 00:47:00 GMT 2003
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.
More information about the Gcc-bugs
mailing list