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 c++/57941] [c++11] confusing error message with invalid constexpr constructor in template struct


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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |paolo.carlini at oracle dot com

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
In mainline we made progress on this issue (I should track down when and why):
after the "because" note we print:

57941.C:5:33: error: call to non-constexpr function âint a<T>::c() const [with
T = int]â
   constexpr int b () { return c (); }

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