This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29485] New: missing diagnostic when declared inline in class declaration
- From: "mueller at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Oct 2006 16:46:04 -0000
- Subject: [Bug c++/29485] New: missing diagnostic when declared inline in class declaration
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Hi,
this testcase fails to produce a "return value missing" diagnostic:
=== Cut ===
class test
{
bool fii(test* other)
{
if (!other) return false;
}
};
=== Cut ===
Interestingly, it works when declared outside the class itself, which makes me
suspect that this is caused by some C++ parser oddity.
--
Summary: missing diagnostic when declared inline in class
declaration
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mueller at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29485