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++/15696] [3.4/3.5 Regression] ICE with pointer-to-members


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-05-28 13:09 -------
Confirmed.

Stripping away unneccesary classes I get the following testcase:

========================================
struct A {};

typedef void (A::*ftype)();

void foo(A a) { a.*ftype(); }
========================================

Slightly modifing the last line, I get a testcase that already crashes
with gcc 3.4.0:

========================================
struct A {};

typedef void (A::*ftype)();

void foo() { A().*ftype(); }
========================================

PR15696.cc: In function `void foo()':
PR15696.cc:5: internal compiler error: in cxx_expand_expr, at cp/expr.c:101
Please submit a full bug report, [etc.]


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |monitored
      Known to fail|                            |3.4.0 3.5.0
      Known to work|                            |3.3.3
   Last reconfirmed|0000-00-00 00:00:00         |2004-05-28 13:09:37
               date|                            |
            Summary|[3.5 Regression] ICE in     |[3.4/3.5 Regression] ICE
                   |gimplifier with pointer-to- |with pointer-to-members
                   |members                     |
   Target Milestone|3.5.0                       |3.4.1


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


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