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/70339] New: Poor message for "singed" vs "signed" typo


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70339

            Bug ID: 70339
           Summary: Poor message for "singed" vs "signed" typo
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dmalcolm at gcc dot gnu.org
  Target Milestone: ---

$ cat t.c
void foo (singed char e) {
}

C frontend, trunk:
$ ./xgcc -B. -c t.c
t.c:1:18: error: expected â)â before âcharâ
 void foo (singed char e) {
                  ^~~~

C++ frontend, trunk:
$ ./xgcc -B. -xc++ -c t.c
t.c:1:18: error: variable or field âfooâ declared void
 void foo (singed char e) {
                  ^~~~
t.c:1:11: error: âsingedâ was not declared in this scope
 void foo (singed char e) {
           ^~~~~~

clang 3.4:
$ clang t.c
t.c:1:11: error: unknown type name 'singed'; did you mean 'signed'?
void foo (singed char e) {
          ^~~~~~
          signed
1 error generated.

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