[Bug c/40097] New: inconsistent printf handling

2009-05-10 Thread Andrey dot Martchovsky at gmail dot com
: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: Andrey dot Martchovsky at gmail dot com GCC target triplet: gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40097

[Bug c/40097] inconsistent printf handling

2009-05-10 Thread Andrey dot Martchovsky at gmail dot com
--- Comment #2 from Andrey dot Martchovsky at gmail dot com 2009-05-11 01:26 --- (In reply to comment #1) > Actually this code is undefined. Using %s with a NULL pointer is undefined so > GCC's behavior is correct. > You are wrong, the GCC behavior is incorrect. Pleas

[Bug c++/40098] New: 64bit constants

2009-05-10 Thread Andrey dot Martchovsky at gmail dot com
-- Summary: 64bit constants Product: gcc Version: 4.3.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: Andrey dot Martchovsky at

[Bug c++/40099] New: 64bit constants

2009-05-10 Thread Andrey dot Martchovsky at gmail dot com
D Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: Andrey dot Martchovsky at gmail dot com GCC target triplet: g++ (Ubuntu 4.3.3-5ubuntu4) 4.3.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40099

[Bug c++/40098] 64bit constants

2009-05-10 Thread Andrey dot Martchovsky at gmail dot com
--- Comment #1 from Andrey dot Martchovsky at gmail dot com 2009-05-11 02:07 --- *** This bug has been marked as a duplicate of 40099 *** -- Andrey dot Martchovsky at gmail dot com changed: What|Removed |Added

[Bug c++/40099] 64bit constants

2009-05-10 Thread Andrey dot Martchovsky at gmail dot com
--- Comment #1 from Andrey dot Martchovsky at gmail dot com 2009-05-11 02:07 --- *** Bug 40098 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40099

[Bug c++/40099] 64bit constants

2009-05-11 Thread Andrey dot Martchovsky at gmail dot com
--- Comment #3 from Andrey dot Martchovsky at gmail dot com 2009-05-11 18:22 --- (In reply to comment #2) > Why is that a problem? C and C++ are different languages. Compiling with g++ > means you are compiling the C code as C++ (see documentation). > My problem is that

[Bug c++/40099] 64bit constants

2009-05-11 Thread Andrey dot Martchovsky at gmail dot com
--- Comment #5 from Andrey dot Martchovsky at gmail dot com 2009-05-11 19:04 --- (In reply to comment #4) > For C++98 and C90, integer constants can only fit into the long type. You need > to use LL if you want a 64bit integer constant. > Thank you for clarifying this. -