This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34180] Default copy constructor copies const auto_ptr members
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Nov 2007 02:59:13 -0000
- Subject: [Bug c++/34180] Default copy constructor copies const auto_ptr members
- References: <bug-34180-15406@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from pinskia at gcc dot gnu dot org 2007-11-25 02:59 -------
With types checking on the trunk, I actually get an ICE:
t.cc:8: error: type mismatch in address expression
struct G *
const struct G *
D.2051 = &D.2032->g
t.cc:8: internal compiler error: verify_gimple failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Confirmed.
This used to work in 3.4.0 and before:
t.cc: In function `int main()':
t.cc:9: error: no matching function for call to `main()::A::A()'
t.cc:6: note: candidates are: main()::A::A(main()::A&)
I don't think I could count this regression. GCC in 3.4.0 and before was not
producing the normal constructor.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |accepts-invalid, ice-on-
| |valid-code
Known to fail| |4.1.1 4.1.2 4.2.0 4.3.0
Last reconfirmed|0000-00-00 00:00:00 |2007-11-25 02:59:13
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34180