Jeroen Demeyer on Tue, 04 Oct 2016 21:55:11 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: is_universal_constant() assumes that gen_0 <= ghalf |
On 2016-10-04 17:48, Karim Belabas wrote:
2) I don't think that we can rely on the address of 'readonly_constants' to be already fixed within its initializer
Actually, I think you can. The object has "static storage duration", so a pointer to it is legal to use as initializer expression. See http://publications.gbdirect.co.uk/c_book/chapter6/initialization.html
Also, "gcc -std=c89 -pedantic -Wall -Wextra" doesn't give any warnings when doing that.