: 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
--- 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
--
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
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
--- 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
--- 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
--- 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
--- 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.
-