[LLVMbugs] [Bug 20378] New: decltype-specifier accepted in destructor declarator-id

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jul 20 23:20:26 PDT 2014


            Bug ID: 20378
           Summary: decltype-specifier accepted in destructor
           Product: clang
           Version: 3.4
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: david_work at me.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140721/d206811f/attachment.html>

More information about the llvm-bugs mailing list