This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/64743] New: minor issue with the location of -Wlong-long
- From: "chengniansun at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 23 Jan 2015 09:58:01 +0000
- Subject: [Bug c/64743] New: minor issue with the location of -Wlong-long
- Auto-submitted: auto-generated
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.