Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: zweije at xs4all dot nl
Created attachment 32974
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32974&action=edit
Test output
gcc-4.9 crashes when combining -Wstrict-overflow=4 and -O2 on the followi
--- Comment #2 from zweije at xs4all dot nl 2009-12-31 11:01 ---
I beg to differ. I cannot find where the standard says that
unsigned short *always* promotes to int in rvalue contexts.
My reading in more detail is:
1. The value of y is an lvalue of type unsigned short (5.1/7).
2
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: zweije at xs4all dot nl
GCC build triplet: x86_64-linux-gnu
GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41779
--- Comment #1 from zweije at xs4all dot nl 2008-08-06 13:48 ---
$g++ -o crash.o crash.cpp
+ /usr/bin/g++-4.3 -L/home/vincent/lib32 -o crash.o crash.cpp
crash.cpp: In static member function static void S::f() [with T = int]:
crash.cpp:6: instantiated from here
crash.cpp:4: internal
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: zweije at xs4all dot nl
GCC build triplet: x86_64-linux-gnu
GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-
declare operator() using function typedef
Product: gcc
Version: 4.2.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: zweije at xs4all dot nl