[llvm-bugs] [Bug 46231] Clang accepts empty declaration in a template declaration
    via llvm-bugs 
    llvm-bugs at lists.llvm.org
       
    Wed Jul 29 12:36:29 PDT 2020
    
    
  
https://bugs.llvm.org/show_bug.cgi?id=46231
Richard Smith <richard-llvm at metafoo.co.uk> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
 Fixed By Commit(s)|                            |llvmorg-12-init-1498-g1cbdf
                   |                            |932b41
         Resolution|---                         |FIXED
--- Comment #2 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Clang was previously producing an extension warning, which was promoted to an
error with -pedantic-errors, so this was an extension (albeit an accidental
one, as far as I can tell) rather than a bug.
However, no other C++ compiler accepts such constructs, not even in permissive
mode, so we're not doing anyone a favor by allowing this. I've converted it to
being a hard error.
-- 
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/20200729/38448700/attachment.html>
    
    
More information about the llvm-bugs
mailing list