This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20691] New: accept-invalid template template argument
- From: "sstrasser at systemhaus-gruppe dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Mar 2005 15:50:42 -0000
- Subject: [Bug c++/20691] New: accept-invalid template template argument
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
>"Ioannis Vranos" <ivr@remove.this.grad.com> wrote...
>
>> #include <vector>
>>
>>
>> template< template<class> class ContainerTemplate, class ValueType>
>> inline void test(const ValueType &val)
>> {
>> ContainerTemplate<ValueType> container(val);
>> }
>>
>>
>>
>> int main()
>> {
>> using namespace std;
>>
>> test<vector>(10);
>> }
>
>
>No, this is not valid for a simple reason that std::vector is a template
>that has more than one argument. Your 'ContainerTemplate' template
>template argument has only one argument itself.
>
>
--
Summary: accept-invalid template template argument
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sstrasser at systemhaus-gruppe dot de
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20691