http://llvm.org/bugs/show_bug.cgi?id=16790
Bug ID: 16790
Summary: auto decltype dependent on declaration sequence
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
struct Foo {
auto f() -> decltype(x); // error: use of undeclared identifier 'x'
int x;
};
struct Bar {
int x;
auto f() -> decltype(x); // ok
};
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs