This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/12925] New: Mistaking a bad function declaration for a function call with no return


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]