Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352859 - [c++0x] Variadic template arguments error
Summary: [c++0x] Variadic template arguments error
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 8.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 8.0.1   Edit
Assignee: Markus Schorn CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-22 09:34 EDT by trashyankes CLA
Modified: 2011-07-27 11:18 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description trashyankes CLA 2011-07-22 09:34:19 EDT
template<template<class...> class A>
struct CZ{ };

template<class T1> // adding `...` will remove this error
struct CHH{ };

typedef CZ<CHH> wwhgjh; // <- error `Invalid template arguments`

this code is valid in g++ 4.6


-- Configuration Details --
Product: Eclipse 1.3.2.20110218-0812 (org.eclipse.epp.package.cpp.product)
Installed Features:
 org.eclipse.platform 3.6.2.r362_v20110210-9gF78Gs1FrIGnHDHWkEcopoN8AmxeZflGDGKQi
Comment 1 Markus Schorn CLA 2011-07-27 11:01:38 EDT
Added testcase and fix.
Comment 2 CDT Genie CLA 2011-07-27 11:18:29 EDT
*** cdt git genie on behalf of 352859 ***

    Bug 352859: Matching of template template parameters.

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=fd671be08fb0b84495350fae9f71f919770c7aaf