Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MSVC] 'mutable' must be allowed to be applied to references #22818

Closed
alexey-bataev opened this issue Feb 3, 2015 · 2 comments
Closed

[MSVC] 'mutable' must be allowed to be applied to references #22818

alexey-bataev opened this issue Feb 3, 2015 · 2 comments
Assignees
Labels
bugzilla Issues migrated from bugzilla c++

Comments

@alexey-bataev
Copy link
Member

Bugzilla Link 22444
Resolution FIXED
Resolved on Feb 03, 2015 22:46
Version trunk
OS Windows NT
CC @DougGregor

Extended Description

#include

int main (){
return 0;
}

Standart c++ header 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)

@alexey-bataev
Copy link
Member Author

assigned to @alexey-bataev

@alexey-bataev
Copy link
Member Author

Fixed in revision 228113

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 9, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla c++
Projects
None yet
Development

No branches or pull requests

1 participant