[llvm-bugs] [Bug 34848] New: template argument shadowed by constant in same scope
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Oct 5 11:28:01 PDT 2017
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: unassignedclangbugs at nondot.org
Reporter: sintendo at gmail.com
CC: dgregor at apple.com, llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171005/738405c0/attachment.html>
More information about the llvm-bugs
mailing list