[LLVMbugs] [Bug 20990] New: [C++11] member pointer declaration cannot use decltype specifier

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Sep 17 21:22:47 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20990

            Bug ID: 20990
           Summary: [C++11] member pointer declaration cannot use decltype
                    specifier
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: kariya_mitsuru at hotmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The sample code below should be compiled successfully but it causes compilation
error by clang.
================================
struct S {
    int i;
};

int main()
{
    S v;
    int decltype(v)::*p = &S::i;
}
================================

The "decltype(v)::*" is ptr-operator and "decltype(v)::" is
nested-name-specifier, so it is well-formed.

cf. http://melpon.org/wandbox/permlink/o2cISNE0JqJ2YbDj

-- 
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/20140918/38707520/attachment.html>


More information about the llvm-bugs mailing list