[Bug c++/41560] Bus error on operator[] override

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Oct 3 22:19:00 GMT 2009



------- Comment #2 from rguenth at gcc dot gnu dot org  2009-10-03 22:19 -------
Not valid.  At least 4.0.4 and later say

t.C: In member function ‘const T& MyVector<T>::operator[](size_t) const’:
t.C:7: error: expected `(' before ‘operator’
t.C:7: error: expected ‘;’ before ‘operator’


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.4


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



More information about the Gcc-bugs mailing list