http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57164
Bug #: 57164
Summary: enumerator value -1 is too large for underlying type
‘unsigned int’
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRME
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57164
--- Comment #1 from Nicholas 2013-05-03 21:24:03
UTC ---
(assuming 32-bit ints and two's complement)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57170
Bug #: 57170
Summary: No diagnostic for a negative case when switching over
unsigned
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONF
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: vvnic.holas at gmail dot com
The following code compiles without any warning or error:
struct A {
const int value1;
int& value2;
};
struct B : A {};
int main() {