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

Richard Smith <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #15 from Richard Smith <[email protected]> ---
Warning added in r201620:

$ echo 'typedef int& IntRef;
void foo(const IntRef m);
void bar(int& const m);' | ./build/bin/clang -x c++ -
<stdin>:2:10: warning: 'const' qualifier on reference type 'IntRef' (aka 'int
&') has no effect [-Wignored-qualifiers]
void foo(const IntRef m);
         ^~~~~~
<stdin>:3:15: error: 'const' qualifier may not be applied to a reference
void bar(int& const m);
              ^

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