https://bugs.llvm.org/show_bug.cgi?id=34848
Bug ID: 34848
Summary: template argument shadowed by constant in same scope
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangb...@nondot.org
Reporter: sinte...@gmail.com
CC: dgre...@apple.com, llvm-bugs@lists.llvm.org
Created attachment 19243
--> https://bugs.llvm.org/attachment.cgi?id=19243&action=edit
minimal testcase
Minimal testcases:
https://godbolt.org/g/tZpmDU
https://godbolt.org/g/wa1Br4
clang and GCC disagree on whether the template argument should shadow the
constant or vice-versa. clang gives precedence to the constant, completely
ignoring the template argument.
Seems to affect every clang version since at least 3.4.1.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs