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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-08-02
      Known to work|                            |3.4.3, 4.1.2
            Summary|Silently accepts sizeof to  |[4.6, 4.7, 4.8 Regression]
                   |non-static member without   |Silently accepts sizeof to
                   |object in C++03 mode        |non-static member without
                   |                            |object in C++03 mode
     Ever Confirmed|0                           |1
      Known to fail|                            |4.4.3

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-08-02 
09:42:07 UTC ---
Confirmed, 3.4 and 4.1 got this right:

t.cc:3: error: invalid use of non-static data member `Class::Member'
t.cc:6: error: from this location

Reply via email to