https://bugs.llvm.org/show_bug.cgi?id=49069
Bug ID: 49069
Summary: Clang accepts invalid code when an auto arg
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++2a
Assignee: unassignedclangb...@nondot.org
Reporter: darrell.wri...@gmail.com
CC: blitzrak...@gmail.com, erik.pilking...@gmail.com,
llvm-bugs@lists.llvm.org, richard-l...@metafoo.co.uk
clang trunk accepts the following code.
template<>
int func( int a, auto b ) { return a + b; }
int main( ) {
return func( 1, true );
}
It's not a specialization, and allows an empty template parameter list.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs