[LLVMbugs] [Bug 15801] illegal use of decltype in destructor silently accepted

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Apr 21 02:47:40 PDT 2013


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

Anton Korobeynikov <asl at math.spbu.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |asl at math.spbu.ru
         Resolution|---                         |FIXED

--- Comment #1 from Anton Korobeynikov <asl at math.spbu.ru> ---
I'm seeing:

$ clang++ 1.cpp 
1.cpp:6:6: error: expected the class name after '~' to name a destructor
    ~decltype(*c)() { printf("DECLTYPE DESTROY\n"); }
     ^
1.cpp:6:16: error: C++ requires a type specifier for all declarations
    ~decltype(*c)() { printf("DECLTYPE DESTROY\n"); }
              ~^
1.cpp:10:8: error: expected ';' at end of declaration
    C c{};
       ^
       ;

So, fixed after 3.1

-- 
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/20130421/5df7cc38/attachment.html>


More information about the llvm-bugs mailing list