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 target/31782] Invalid assembly code on initial dollar signs


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

funto66 at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |funto66 at gmail dot com

--- Comment #5 from funto66 at gmail dot com 2011-02-04 16:42:33 UTC ---
I think this is the same bug that I got :
- this code compiles :
#include <stdio.h>
int main(int argc, char* argv[])
{
    int $a = 0;
    for($a = 0 ; $a < 10 ; $a++)
        printf("%d\n", $a);

    return 0;
}


- this one doesn't :
#include <stdio.h>
int main(int argc, char* argv[])
{
    static const char* $tr = "Hello World !\n";
    int i=0;

    for(;$tr[i] != '\0' ; i++)
        fputc($tr[i], stdout);

    return 0;
}

Version used: gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)


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