The info page says: "This built-in function returns EXP1 if CONST_EXP, which is a constant expression that must be able to be determined at compile time, is nonzero. Otherwise it returns 0."
The last sentence should read, "Otherwise it returns EXP2." -- Summary: Documentation for __builtin_choose_expr is wrong Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: brian at oddchange dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33013