[LLVMbugs] [Bug 22444] New: [MSVC] 'mutable' must be allowed to be applied to references
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Feb 3 02:23:10 PST 2015
http://llvm.org/bugs/show_bug.cgi?id=22444
Bug ID: 22444
Summary: [MSVC] 'mutable' must be allowed to be applied to
references
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: a.bataev at gmx.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
#include <future>
int main (){
return 0;
}
Standart c++ header <future> includes <ppltasks.h> (line 18). <ppltasks.h> in
it's turn uses header
<ppl.h>(line 21), where such definition appears:
mutable _Combinable_type &_Combinable; // (line 4151: column 5)
In such definition keyword mutable is applied to a reference type despite the
fact that it violates C++11 standart:
"The mutable specifier shall appear only in the declaration of a non-static
data member (9.2) whose type is
neither const-qualified nor a reference type." (C++11 standart: 7.1.1 Storage
class specifiers)
--
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/20150203/5665b2ed/attachment.html>
More information about the llvm-bugs
mailing list