[llvm-bugs] [Bug 25644] New: clang-cl rejects code that Visual C++ accepts
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Nov 25 14:47:39 PST 2015
https://llvm.org/bugs/show_bug.cgi?id=25644
Bug ID: 25644
Summary: clang-cl rejects code that Visual C++ accepts
Product: new-bugs
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: yaron.keren at gmail.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
The code comes from boost typeof:
template <typename ID, typename T = int>
struct msvc_extract_type;
template <typename ID>
struct msvc_extract_type<ID, int> {
template <bool> struct id2type_impl;
};
template <typename ID, typename T>
struct msvc_extract_type
: msvc_extract_type<ID, int> {
template <>
struct id2type_impl<true> // VC8.0 specific bugfeature
{};
};
clang errors while Visual C++ 2013 (from the comment, all the way from VC 8...)
accepts it, so it should be a warning instead of error when Microsoft
extensions are enabled.
--
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/20151125/d24bd9f4/attachment.html>
More information about the llvm-bugs
mailing list