This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12427] New: Compiler misses error, gets lost. big time
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Sep 2003 22:19:30 -0000
- Subject: [Bug c++/12427] New: Compiler misses error, gets lost. big time
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.