[Bug other/12315] [3.4 Regression] ICE using -p with functions returning structs

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Oct 23 22:35: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=12315


reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
           Keywords|                            |monitored
            Summary|[3.4 Regression] stage1/cc1 |[3.4 Regression] ICE using -
                   |segfaulted when --pg is used|p with functions returning
                   |during bootstrap.           |structs


------- Additional Comments From reichelt at gcc dot gnu dot org  2003-10-23 22:27 -------
The same happens with C++ (see e.g. PR 12748).
A minimal testcase to illustrate this:

============================================
struct A {};
A foo() { return A(); }
============================================

Just compile with g++ -p to get a segfault.



More information about the Gcc-bugs mailing list