[Bug c++/21510] Possible bug

2005-05-17 Thread sven at clio dot in-berlin dot de
--- Additional Comments From sven at clio dot in-berlin dot de 2005-05-17 11:42 --- (In reply to comment #9) > Over my dead body. :-) Oh, come on. It isn't that bad an idea to localize substitution failures, isn't it:-) > -- Gaby Sven -- http://gcc.

[Bug c++/21510] Possible bug

2005-05-16 Thread sven at clio dot in-berlin dot de
--- Additional Comments From sven at clio dot in-berlin dot de 2005-05-16 10:22 --- (In reply to comment #7) > > Is there a way to distinguish between unions (which are not usable as base > > classes) and classes? If not, the standard is incomplete. > > You s

[Bug c++/21543] Full specialization of templates not supported in classes

2005-05-15 Thread sven at clio dot in-berlin dot de
--- Additional Comments From sven at clio dot in-berlin dot de 2005-05-15 18:20 --- (In reply to comment #8) > Let me say this, the standard is needed otherwise, there is no language > defined as C, just like there phython is not really defined. Did You know that You c

[Bug c++/21543] Full specialization of templates not supported in classes

2005-05-15 Thread sven at clio dot in-berlin dot de
--- Additional Comments From sven at clio dot in-berlin dot de 2005-05-15 17:58 --- This is the last try. First I wonder who has invented the strange syntax for defining template member classes outside. C++ is still an imperative programming language, not a functional. A

[Bug c++/21543] Full specialization of templates not supported in classes

2005-05-15 Thread sven at clio dot in-berlin dot de
--- Additional Comments From sven at clio dot in-berlin dot de 2005-05-15 17:46 --- (In reply to comment #6) > > ... Why? > > Because the standard says so, there is no other reason (in other words, th

[Bug c++/21510] Possible bug

2005-05-15 Thread sven at clio dot in-berlin dot de
--- Additional Comments From sven at clio dot in-berlin dot de 2005-05-15 14:46 --- (In reply to comment #5) > Extensions are bad. Even just bugs in the compiler is a bad thing beause > people would think the bug > was an extension and start depending on it and then whe

[Bug c++/21543] Full specialization of templates not supported in classes

2005-05-15 Thread sven at clio dot in-berlin dot de
--- Additional Comments From sven at clio dot in-berlin dot de 2005-05-15 14:43 --- And for everyone who have the same problem, here is a workaround. Declare a template class with a dummy argument (int in this case), partial specialize this class and derive from the partial

[Bug c++/21510] Possible bug

2005-05-15 Thread sven at clio dot in-berlin dot de
--- Additional Comments From sven at clio dot in-berlin dot de 2005-05-15 14:08 --- (In reply to comment #3) > The code is invalid. In the section 14.8.2 [temp.deduct] paragraph 2 of the > standard > does not include creating a class with invalid base class. If there is

[Bug c++/21543] Full specialization of templates not supported in classes

2005-05-15 Thread sven at clio dot in-berlin dot de
--- Additional Comments From sven at clio dot in-berlin dot de 2005-05-15 14:03 --- (In reply to comment #3) > From 14.7.2 [temp.expl.spec] paragraph 2: > An explicit specialization shall be declared in the namespace of which the > template is a member, > or

[Bug c++/21543] Full specialization of templates not supported in classes

2005-05-14 Thread sven at clio dot in-berlin dot de
--- Additional Comments From sven at clio dot in-berlin dot de 2005-05-14 08:37 --- After reflection I changed the subject. While template declaration and partial specialization is possible inside a class, the full specialzation is not. -- What|Removed

[Bug c++/21543] New: Templates and sub types are not inherited in g++

2005-05-13 Thread sven at clio dot in-berlin dot de
plates and sub types are not inherited in g++ Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sven at clio dot in-berlin

[Bug c++/21510] Possible bug

2005-05-12 Thread sven at clio dot in-berlin dot de
--- Additional Comments From sven at clio dot in-berlin dot de 2005-05-12 09:48 --- (In reply to comment #1) > I don't think you used SFINF correctly. The substitution of the formal parameter with the actual argument fails, thus it is a form of substitution failure. I do

[Bug c++/21510] New: Possible bug

2005-05-11 Thread sven at clio dot in-berlin dot de
Status: UNCONFIRMED Severity: minor Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sven at clio dot in-berlin dot de CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i486-linux GCC host triplet: i486-linux GCC target triplet: i486-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21510