[Bug c++/18969] New: Invalid return statement diagnosed too late
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Dec 13 21:34:00 GMT 2004
The invalid return statement is not diagnosed until foo is used.
======================================
template<int> struct A
{
void foo() { return 0; }
};
// void bar() { A<0>().foo(); }
======================================
This problem is present since at least gcc 2.95.3.
--
Summary: Invalid return statement diagnosed too late
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: accepts-invalid, monitored
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18969
More information about the Gcc-bugs
mailing list