[LLVMbugs] [Bug 18411] New: Alias template is incorrectly treated as a different template when used with as a template template parameter
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jan 7 03:15:58 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=18411
Bug ID: 18411
Summary: Alias template is incorrectly treated as a different
template when used with as a template template
parameter
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: ken at fsfoundry.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
As I was explaining bug #18408 to my colleague, I realized there was another
bug.
template <template <typename> class A>
struct TemplateTakingTemplateTemplateParameter {};
template <typename B>
class GlobalTemplate {};
template <typename B>
using AliasToGlobalTemplate = GlobalTemplate<B>;
void foo(GlobalTemplate) {}
/*
void foo(AliasToGlobalTemplate) {} // Error: Redefine!
*/
void foo(TemplateTakingTemplateTemplateParameter<GlobalTemplate>) {}
void foo(TemplateTakingTemplateTemplateParameter<AliasToGlobalTemplate>) {} //
Compiles, but it shouldn't
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140107/c80d742f/attachment.html>
More information about the llvm-bugs
mailing list