This is the mail archive of the gcc@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]

Gcc 3.4.2 -> 3.4.3 change of behaviour; Bug or broken code?


Is this a bug, or broken code?

 enum state { HELLO, MUM };

 int main()
 {
    enum state __attribute__ ((mode (__byte__))) a;
    a = HELLO;
    return 0;
 }


Compiles fine with 3.4.2, but 3.4.3 gives

 test.c: In function `main':
 test.c:6: error: mode `byte' applied to inappropriate type

Andrew Walrond


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