This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/64743] New: minor issue with the location of -Wlong-long


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]