[LLVMbugs] [Bug 15769] New: need eager instantiation of default template arguments
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Apr 17 08:31:48 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=15769
Bug ID: 15769
Summary: need eager instantiation of default template arguments
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: richard-llvm at metafoo.co.uk
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
This is ill-formed (with a required diagnostic):
#include <type_traits>
template<class T>
struct X {
template<class U = typename T::type>
static void foo(int){}
static void foo(...){}
};
int main(){
X<std::enable_if<false>>::foo(0);
}
g++ and EDG reject, clang accepts.
--
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/20130417/abff045f/attachment.html>
More information about the llvm-bugs
mailing list