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

            Bug ID: 22508
           Summary: Tilde and decltype-specifier cause ICEs and parser
                    failings
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++14
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

If the id-expression following the tilde inside a class declaration is a valid
decltype-specifier the parser bails out completely: 

struct A 
{ 
    ~decltype(auto) void void void { 
        AnyNonsenseInhereIsValid BUAAAHAAHHHHH 
        void return nothing look-a-penny<<@Üü
    } 
};

Moreover, consider what happens if the same thing appears in another valid
context such as

A().~decltype(auto); // ICE, and A can be an empty struct

It seems the parser delegates to the semantic analyzer which fails in
clang::Sema::CheckPlaceholderExpr.

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