[Bug c/64743] New: minor issue with the location of -Wlong-long
chengniansun at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Jan 23 09:58:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64743
Bug ID: 64743
Summary: minor issue with the location of -Wlong-long
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
The current -Wlong-long points to the location of the second "long", and I
think it will be better if it points to the first "long".
$: cat s.c
typedef long long ll;
$:
$: gcc-trunk -c -std=c89 s.c -pedantic
s.c:1:14: warning: ISO C90 does not support ‘long long’ [-Wlong-long]
typedef long long ll;
^
$:
$: clang-trunk -c -std=c89 s.c -pedantic
s.c:1:9: warning: 'long long' is an extension when C99 mode is not enabled
[-Wlong-long]
typedef long long ll;
^
1 warning generated.
More information about the Gcc-bugs
mailing list