[llvm-bugs] [Bug 43779] New: [clang-cl] diagnoses __expect(<dependent-expression>) at template parse time
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Oct 23 16:11:09 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=43779
Bug ID: 43779
Summary: [clang-cl] diagnoses __expect(<dependent-expression>)
at template parse time
Product: clang
Version: 9.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: Casey at Carter.net
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
Compiling this well-formed program:
template <class T>
void f() {
__try {}
__except(T{}) {}
}
int main() {
f<int>();
}
with "clang-cl /EHsc" diagnoses:
repro.cpp(4,14): error: filter expression type should be an integral value
not 'T'
__except(T{}) {}
^
1 error generated.
Presumably the semantic check should be delayed until instantiation when the
expression passed to "__except" is type-dependent.
(Apologies for selecting "C++" for the Component field on this bug - there's no
option for "Microsoft Extensions.")
--
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/20191023/3d540d25/attachment.html>
More information about the llvm-bugs
mailing list