[Bug c++/29260] Calling member function of const object causes segmentation fault in compiler
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Sep 28 11:14:00 GMT 2006
------- Comment #1 from rguenth at gcc dot gnu dot org 2006-09-28 11:14 -------
Works for me on i686-linux with all versions. Also the code in question is
invalid:
t.C:9: error: '::main' must return 'int'
t.C: In function 'int main()':
t.C:11: error: uninitialized const 'y'
t.C:12: error: passing 'const Y' as 'this' argument of 'void Y::f()' discards
qualifiers
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|other |c++
Keywords| |ice-on-invalid-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29260
More information about the Gcc-bugs
mailing list