https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66963
--- Comment #6 from Nicolai Stange nicstange at gmail dot com ---
Thank you for your clarifications, Andrew and Joseph.
As far as I am concerned, this bug can be marked as resolved/rejected/whatever
you like.
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: nicstange at gmail dot com
Target Milestone: ---
The first argument to __builtin_choose_expr() must be a constant expression.
However, at -O2, the following
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66963
--- Comment #3 from Nicolai Stange nicstange at gmail dot com ---
(In reply to Andrew Pinski from comment #1)
I thought this is documented somewhere but __builtin_choose_expr only really
accept constant literals and not constexprs.
https
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66963
--- Comment #4 from Nicolai Stange nicstange at gmail dot com ---
Sorry, misunderstanding at my side. You probably did not mean constexprs in the
sense of C99, 6.6, but constexprs in the sense of constant folded expressions.
: target
Assignee: unassigned at gcc dot gnu.org
Reporter: nicstange at gmail dot com
Target Milestone: ---
Created attachment 35797
-- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35797action=edit
Testcase
Adding `-gsplit-dwarf' leads to doubly defined symbols even in trivial
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66579
--- Comment #1 from Nicolai Stange nicstange at gmail dot com ---
Created attachment 35798
-- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35798action=edit
Output of `gcc -S -gsplit-dwarf' on Testcase