This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/72076] cmath: illegal instruction (constexpr)


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

--- Comment #6 from Thorsten Hirsch <t.hirsch at web dot de> ---
One by one. :)
I mean this snippet:

  template<typename _Tp>

    constexpr

    typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,

                                    int>::__type

    ilogb(_Tp __x)

    { return __builtin_ilogb(__x); }


Is this valid? Or should there be an "int" or "float" after the "constexpr"
in line 2?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]