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

            Bug ID: 97265
           Summary: new warning with clang build
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

I just tried a build of gcc trunk with clang. It said

trunk.git/gcc/vec.h:543:13: warning: 'constexpr' non-static member function
will not be implicitly 'const' in C++14; add 'const' to avoid a change in
behavior [-Wconstexpr-not-const]

I don't remember this warning from last week's clang build.

Source code is

 CONSTEXPR operator vec<T, A, L> () { return vec<T, A, L>(); }

My best guess is that 

 CONSTEXPR operator vec<T, A, L> () const { return vec<T, A, L>(); }

will shut up clang.

Reply via email to