Take the following C++ code:
struct a
{
  virtual ~a();
};
struct b : virtual a { };
b a11;

With the (to be) attached patch I get the following mis-match types:
t.cc: In constructor 'b::b()':
t.cc:10: error: statement types mismatch
iftmp.8D.1929 = 0;
intD.2
long unsigned intD.7

This was reduced from complex_io.cc in libstdc++.

-- 
           Summary: C++ front-end (or fold) produces mis-match types in
                    MODIFY_EXPR
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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

Reply via email to