This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28475] Internal error: Segmentation fault (program cc1plus)
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Feb 2007 22:52:50 -0000
- Subject: [Bug c++/28475] Internal error: Segmentation fault (program cc1plus)
- References: <bug-28475-8718@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from reichelt at gcc dot gnu dot org 2007-02-09 22:52 -------
You don't even need templates to enter the infinite loop:
========================
struct B;
struct A
{
A(A&);
A(B);
};
struct B
{
B(A);
};
A foo();
A a(foo());
========================
This is problem is similar to PR5247.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Keywords| |monitored
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28475