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++/14173] [3.4/3.5 Regression] -fpack-struct crashes on hello_world.cpp


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-02-19 03:17 -------
Here's a redux for the ICE:

=============================================
struct A;

void foo(const A&);

struct A
{
    A(const A&);
};

struct B
{
    A a;
    A bar() { return a; }
};
=============================================

If the ICE is fixed one should probably revisit the errors in libstdc++.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
           Severity|minor                       |critical
          Component|libstdc++                   |c++
           Keywords|error-recovery, ice-on-     |ice-on-valid-code, monitored
                   |invalid-code                |
      Known to work|3.3.1                       |3.3.3
            Summary|[3.4/3.5 Regression]        |[3.4/3.5 Regression] -fpack-
                   |cvs20040211: -fpack-struct  |struct crashes on
                   |crashes on hello_world.cpp  |hello_world.cpp


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


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