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/54823] string literal characters not constant


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

--- Comment #5 from Sebastian Freundt <devel at fresse dot org> 2012-10-05 12:45:45 UTC ---
Ok, I see.  I assume, there's no plans on widening the allowed expressions for
constant integers?

It's autogenerated code a la:

  #define foo "bar"
  (foo)[1] * 0x55 + (foo)[2] * 0x30

where the indices are calculated.  I was trying to port the generated code to
gcc.

Thanks anyway.


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