Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 352859

Summary: [c++0x] Variadic template arguments error
Product: [Tools] CDT Reporter: trashyankes
Component: cdt-parserAssignee: Markus Schorn <mschorn.eclipse>
Status: RESOLVED FIXED QA Contact: Markus Schorn <mschorn.eclipse>
Severity: normal    
Priority: P3 CC: cdtdoug, malaperle
Version: 8.0   
Target Milestone: 8.0.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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