Re: [Sdcc-user] constant expression regression, invalid code generated

2019-02-08 Thread Philipp Klaus Krause
Am 08.02.19 um 09:36 schrieb Eric Rullens: > > What do you think? If it looks like a new bug (or bugs), I can file it. It looks like 2 new bugs to me. Please file them. The second one is particularly bad, since bad code is generated silently, that one needs to be fixed before a 3.9.0 release. Ph

[Sdcc-user] constant expression regression, invalid code generated

2019-02-08 Thread Eric Rullens
Dear All, Since a while I see that sdcc rejects code constructs such as: === const int constant_expression = (2 ? 3 : 4) + (2 ? 3 : 4); error 2: Initializer element is not a constant expression (with sdcc 3.8.5 #10914) === It used to compile fine with e.g. sdcc 3.6.3 #9791. In another case an