https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38377

Vincent Lefèvre <vincent-gcc at vinc17 dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vincent-gcc at vinc17 dot net

--- Comment #10 from Vincent Lefèvre <vincent-gcc at vinc17 dot net> ---
This bug should be reopened. The following test still fails:

int t = 1;
enum { N = __builtin_constant_p(t) ? t : 1 };

zira:~> g++-6 --version
g++-6 (Debian 6.2.1-5) 6.2.1 20161124
[...]

zira:~> g++-6 tst.c -c -std=c++98
tst.c:2:38: error: ‘t’ cannot appear in a constant-expression
 enum { N = __builtin_constant_p(t) ? t : 1 };

(I doubt this is a Debian-specific bug.)

Reply via email to