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

            Bug ID: 20378
           Summary: decltype-specifier accepted in destructor
                    declarator-id
           Product: clang
           Version: 3.4
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

This ill-formed program is accepted. According to [class.dtor] 12.4/1, the
tilde must be followed by a class-name, which decltype() isn't.

#include <utility>

struct s {
~ decltype(std::declval<s>());
};

-- 
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

Reply via email to