[LLVMbugs] [Bug 13110] Should warn for "const" applied to reference type (even a typedef)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Feb 18 12:10:04 PST 2014


Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|---                         |WONTFIX

--- Comment #8 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Generally-speaking, we don't like inventing language extensions, because they
create C++ dialects and so fragment the language. AFAIK, no other compiler
accepts 'T &const', so there's no compatibility argument here, and no-one is
proposing this for standardization.

I'm also not even sure what you're proposing: is it that you want 'T &const' to
be treated as 'T const&' (which I think is the "common newbie mistake" you're
referring to), or that you want it to be treated as 'T &' (like 'const
IntRef')? Both of these seem like bad answers.

This does not meet the requirements for a Clang language extension (see
http://clang.llvm.org/get_involved.html) => WONTFIX.

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/20140218/8e80beb9/attachment.html>

More information about the llvm-bugs mailing list