This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/34180] Default copy constructor copies const auto_ptr members



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]