[LLVMbugs] [Bug 16790] New: auto decltype dependent on declaration sequence

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Aug 4 23:46:23 PDT 2013


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: unassignedclangbugs at nondot.org
          Reporter: benthic at web.de
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130805/ed49f8c9/attachment.html>


More information about the llvm-bugs mailing list