Open Quuxplusone opened 14 years ago
Attached operator_missing.cc
(177 bytes, application/octet-stream): Asserting test case derived from boost
Possibly related: rdar://problem/7941392
Reduction:
enum E { e0 };
void f() {
E e;
e |= 1;
}
Fixed in r104475
I compile the testcase with the latest clang++. It produces an error message:
error: assigning to '_Ios_Iostate' from incompatible type 'int'
__err |=1;
^ ~
1 error generated.
However, g++ does not produce any compilation errors. I also report the problem
to gcc:https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85460
They may have a different opinion on this issue.
operator_missing.cc
(177 bytes, application/octet-stream)