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++/13492] New: (probably) infinite recursion when compiling: argument of type A in a constructor of A


Try to compile this:

-----

class ab {
public:
    int something;
    ab( ab* param1 = 0, ab param2 = 0 );
                 /*     ^-- here */
};

main()
{
    ab* ptr = new ab;
}

----

I am not sure, if this is definitely the root cause. gcc (cc1plus in particular) 
goes into an infinite recursion (since occupies more and more resources and then 
crashes) when trying to compile this.

I doubt the target platform or version matters. This error has been detected
some years ago (probably even on version 2.92) and I saw it when looking into my 
old, forgotten mail archives; I thought it is already fixed.

I did not found such a bug already in a DB mostly because I could not qualify 
precisely this bug with keywords.

-- 
           Summary: (probably) infinite recursion when compiling: argument
                    of type A in a constructor of A
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ethouris at o2 dot pl
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13492


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