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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs