The fix is incomplete. The following testcase still fails:

==========================
struct A
{
  static void foo();
};

void bar()
{
  A().foo;
}
==========================

bug.cc: In function 'void bar()':
bug.cc:8: warning: statement is a reference, not call, to function 'A().A::foo'
bug.cc:8: internal compiler error: tree check: expected field_decl, have
baselink in component_ref_field_offset, at expr.c:5882
Please submit a full bug report, [etc.]


-- 
           Summary: [4.0/4.1/4.2 Regression] ICE with statement forming
                    unused static member function reference
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
 BugsThisDependsOn: 26696


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

Reply via email to