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/28318] New: error message could be better


[forwarded from http://bugs.debian.org/342126]

  Matthias

The original testcase had a typo, having a $ instead of a &, leading to an
error message from the assembler:

void f() {
    $();
}

$ gcc -c foo.c
/tmp/ccX1KBFb.s: Assembler messages:
/tmp/ccX1KBFb.s:9: Error: missing or invalid immediate expression `' taken as 0
/tmp/ccX1KBFb.s:9: Error: suffix or operands invalid for `call'

Apparently i386 doesn't like symbols starting with $. There should
probably be a better error message, but I wouldn't give it very high
priority... Or maybe there is some way to "escape" the symbol name?


-- 
           Summary: error message could be better
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: debian-gcc at lists dot debian dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28318


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