[llvm-bugs] [Bug 41171] New: Nested scopes within catch-clause seems broken in clang-9(trunk)
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Mar 21 02:23:52 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41171
Bug ID: 41171
Summary: Nested scopes within catch-clause seems broken in
clang-9(trunk)
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: jbulow-llvm at jongel.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
This code does not compile in clang-9 (as of 2019-03-21):
void foo()
{
int i = 42;
try {
}
catch(...)
{
int ref = i;
{
int ref = i;
}
}
}
<source>:10:16: error: redefinition of 'ref'
int ref = i;
^
<source>:8:12: note: previous definition is here
int ref = i;
^
1 error generated.
Compiler returned: 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/20190321/5f2b1a98/attachment.html>
More information about the llvm-bugs
mailing list