[Bug c++/45923] constexpr diagnostic w/ non-literal

2010-11-03 Thread bkoz at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45923 --- Comment #8 from Benjamin Kosnik 2010-11-03 20:55:42 UTC --- Created attachment 22268 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22268 constexpr diagnostics test case #04 This is just a test case for previously-reported-and fixed bu

[Bug c++/45923] constexpr diagnostic w/ non-literal

2010-11-03 Thread bkoz at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45923 --- Comment #7 from Benjamin Kosnik 2010-11-03 20:48:38 UTC --- Created attachment 22266 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22266 constexpr diagnostics test case #03 more locality, from this under-development chrono snippet. %

[Bug c++/45923] constexpr diagnostic w/ non-literal

2010-11-03 Thread bkoz at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45923 --- Comment #6 from Benjamin Kosnik 2010-11-03 17:42:08 UTC --- Created attachment 22257 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22257 constexpr diagnostics test case #02 This diagnostic is for defaulted constructors. At this point,

[Bug c++/45923] constexpr diagnostic w/ non-literal

2010-11-03 Thread bkoz at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45923 --- Comment #5 from Benjamin Kosnik 2010-11-03 17:37:39 UTC --- Created attachment 22256 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22256 constexpr diagnostics test case #01 This is a test case that shows locality information for faile

[Bug c++/45923] constexpr diagnostic w/ non-literal

2010-11-03 Thread bkoz at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45923 --- Comment #4 from Benjamin Kosnik 2010-11-03 17:32:23 UTC --- This is going to be re-purposed into a more general bugreport about constexpr and diagnostics. The goal is to try and get compiler messages about why code constructs are or are not

[Bug c++/45923] constexpr diagnostic w/ non-literal

2010-10-08 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45923 --- Comment #3 from Jason Merrill 2010-10-08 18:37:52 UTC --- (In reply to comment #2) > > It is not valid for real() to be constexpr in a non-literal class > > This is a helpful diagnostic. The existing one is not. constexpr-basic.cc:9:20: err

[Bug c++/45923] constexpr diagnostic w/ non-literal

2010-10-08 Thread bkoz at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45923 --- Comment #2 from Benjamin Kosnik 2010-10-08 17:12:35 UTC --- > It is not valid for real() to be constexpr in a non-literal class This is a helpful diagnostic. The existing one is not. -benjamin

[Bug c++/45923] constexpr diagnostic w/ non-literal

2010-10-07 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45923 --- Comment #1 from Jason Merrill 2010-10-07 15:35:45 UTC --- (In reply to comment #0) > constexpr-basic.cc:20:33: error: ‘double complex::real() const’ is not a > constexpr function > > NO! Yes. It is not valid for real() to be constexpr in a