[Bug c++/33350] copy constructor error

2010-04-29 Thread redi at gcc dot gnu dot org
--- Comment #7 from redi at gcc dot gnu dot org 2010-04-29 22:29 --- compiles without error using 4.4.3 and 4.6.0 -- redi at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c++/33350] copy constructor error

2007-09-09 Thread fang at csl dot cornell dot edu
--- Comment #6 from fang at csl dot cornell dot edu 2007-09-10 04:04 --- Are you referring to DR 152? http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#152 -- fang at csl dot cornell dot edu changed: What|Removed |Added ---

[Bug c++/33350] copy constructor error

2007-09-09 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2007-09-09 10:33 --- Subject: Re: copy constructor error > --- Comment #4 from stevenyi at 163 dot com 2007-09-09 05:26 --- > I can not see any reason to call the copy constructor here. If you remove > keyword explicit so that

Re: [Bug c++/33350] copy constructor error

2007-09-09 Thread Andrew Pinski
> --- Comment #4 from stevenyi at 163 dot com 2007-09-09 05:26 --- > I can not see any reason to call the copy constructor here. If you remove > keyword explicit so that let the code compile, you can find that the copy > constructor is not called at all. Again the 1998 standard (as writte

[Bug c++/33350] copy constructor error

2007-09-08 Thread stevenyi at 163 dot com
--- Comment #4 from stevenyi at 163 dot com 2007-09-09 05:26 --- I can not see any reason to call the copy constructor here. If you remove keyword explicit so that let the code compile, you can find that the copy constructor is not called at all. -- http://gcc.gnu.org/bugzilla/show_

[Bug c++/33350] copy constructor error

2007-09-08 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2007-09-09 02:58 --- There is a C++ defect report about this really. GCC follows exactly what the standard says but the defect report says something different. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33350

[Bug c++/33350] copy constructor error

2007-09-08 Thread stevenyi at 163 dot com
--- Comment #2 from stevenyi at 163 dot com 2007-09-09 02:46 --- (In reply to comment #1) > Yes the copy constructor is going to be called implicately here. the copy constructor is not actually called at runtime. and both intel compiler and vc++ can compile this code. -- http://gcc

[Bug c++/33350] copy constructor error

2007-09-08 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-09-08 09:15 --- Yes the copy constructor is going to be called implicately here. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33350