[Bug c++/42272] derived template default argument

2009-12-05 Thread paolo dot carlini at oracle dot com
--- Comment #10 from paolo dot carlini at oracle dot com 2009-12-05 19:32 --- *** Bug 42296 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42272

[Bug c++/42272] derived template default argument

2009-12-05 Thread paolo dot carlini at oracle dot com
--- Comment #9 from paolo dot carlini at oracle dot com 2009-12-05 09:45 --- *** Bug 42296 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42272

[Bug c++/42272] derived template default argument

2009-12-04 Thread paolo dot carlini at oracle dot com
--- Comment #8 from paolo dot carlini at oracle dot com 2009-12-04 17:44 --- . -- paolo dot carlini at oracle dot com changed: What|Removed |Added Status|UNC

[Bug c++/42272] derived template default argument

2009-12-04 Thread debian dot templier at free dot fr
--- Comment #7 from debian dot templier at free dot fr 2009-12-04 17:44 --- template < typename X , typename XT2 =T , typename X2 = typename XT2 :: X > SMART(SMART & value) : data(value.CastUp) {} ; The code to do the constructor -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42

[Bug c++/42272] derived template default argument

2009-12-04 Thread debian dot templier at free dot fr
--- Comment #6 from debian dot templier at free dot fr 2009-12-04 17:39 --- i want a constructor on template class SMART with reference parameter on SMART & value with the constraint of T on SMART instanciation is T is unherited of X class A { } ; class B : virtual public A { } ; w

[Bug c++/42272] derived template default argument

2009-12-04 Thread debian dot templier at free dot fr
--- Comment #5 from debian dot templier at free dot fr 2009-12-04 17:33 --- the pb is on line : template < typename X , typename XT2 =T , typename X2 = typename XT2 :: X > SMART(SMART & value) : data(value.CastUp) {} ; if i replace the line by > template < typename XT2 = T , typenam

[Bug c++/42272] derived template default argument

2009-12-04 Thread redi at gcc dot gnu dot org
--- Comment #4 from redi at gcc dot gnu dot org 2009-12-04 17:31 --- (In reply to comment #3) > the pb is on line : > template < typename X , typename XT2 =T , typename X2 = typename XT2 :: > X > SMART(SMART & value) : data(value.CastUp) {} ; I don't understand, that line did not appe

[Bug c++/42272] derived template default argument

2009-12-04 Thread debian dot templier at free dot fr
--- Comment #3 from debian dot templier at free dot fr 2009-12-04 17:12 --- Subject: Re: derived template default argument redi at gcc dot gnu dot org wrote: > --- Comment #2 from redi at gcc dot gnu dot org 2009-12-04 09:48 --- > SMART a(); > > This does not declare an objec

[Bug c++/42272] derived template default argument

2009-12-04 Thread redi at gcc dot gnu dot org
--- Comment #2 from redi at gcc dot gnu dot org 2009-12-04 09:48 --- SMART a(); This does not declare an object of type SMART, it declares a function called 'a' which returns SMART You need to change that to: SMART a; or SMART a = SMART(); -- redi at gcc dot gnu dot org changed: