This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12925] New: Mistaking a bad function declaration for a function call with no return
- From: "md at informationsdesign dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Nov 2003 11:38:07 -0000
- Subject: [Bug c++/12925] New: Mistaking a bad function declaration for a function call with no return
- 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=12925
Summary: Mistaking a bad function declaration for a function call
with no return
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: md at informationsdesign dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: sparc-sun-solaris2.8
GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8
Hi, the compiler is crashing here.
It only crashes when you pass it a member as a parameter, I think that it is
mistaking a bad function declaration as a call.
// SNIP
struct goo{
char* alloc(int x);
};
struct dar{
int size;
int goo() { char* goo::alloc(size); }
int goo2() { char* goo::alloc(1); } // not a problem
};
// SNIP