[LLVMbugs] [Bug 23343] New: const const double

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 24 15:48:28 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=23343

            Bug ID: 23343
           Summary: const const double
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Testcase:
template <typename T> struct X {
  typedef const T& const_reference;
};
void helper(const X<const double> x) {
  decltype(x)::const_reference y = x;
}
$ clang b15959151.cc -std=c++11
b15959151.cc:5:32: error: no viable conversion from 'const X<const double>' to
      'const const double'
  decltype(x)::const_reference y = x;
                               ^   ~
1 error generated.

We should never print "const const double".

-- 
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/20150424/fc61b647/attachment.html>


More information about the llvm-bugs mailing list