[Bug c/38354] Spurious error: initializer element is not computable at load time
gnu at behdad dot org
gcc-bugzilla@gcc.gnu.org
Mon Dec 1 23:39:00 GMT 2008
------- Comment #2 from gnu at behdad dot org 2008-12-01 23:38 -------
It's not a useful use case, agreed, but I don't see how that affects the
computability of a value at "load time", whatever that means. It did trick me:
I was converting a vtable to use label values, and before converting the
function pointer type of the array to int, I tried a compile and got the error.
I didn't expect the error to go away if I replace the function pointer type
with an int. To my surprise, it did.
What I'm saying is that the statement in the error message is false.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38354
More information about the Gcc-bugs
mailing list