[Bug c++/12925] New: Mistaking a bad function declaration for a function call with no return
md at informationsdesign dot de
gcc-bugzilla@gcc.gnu.org
Thu Nov 6 11:38: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=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
More information about the Gcc-bugs
mailing list