[Bug c++/57248] string parameter to constexpr functions

2014-10-22 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57248 Paolo Carlini changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/57248] string parameter to constexpr functions

2014-10-03 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57248 --- Comment #9 from Daniel Krügler --- (In reply to Sumant Tambe from comment #8) > How does the recursive strmatch function work then? It works, because the function implementation does not contain any expression that would depend on being a co

[Bug c++/57248] string parameter to constexpr functions

2014-10-03 Thread sutambe at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57248 --- Comment #8 from Sumant Tambe --- Bummer! My assumption/expectation (probably due to my ignorance) is that any transformation/result obtained using a constexpr function should be usable (perhaps recursively) in the caller constexpr function. H

[Bug c++/57248] string parameter to constexpr functions

2014-10-02 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57248 --- Comment #7 from Daniel Krügler --- (In reply to Paolo Carlini from comment #6) > However, it's true that all the up to > date compilers I have at hand reject it with the same kind of error about > get at: > >return std::get(t1); > > lik

[Bug c++/57248] string parameter to constexpr functions

2014-09-05 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57248 --- Comment #6 from Paolo Carlini --- Sorry, I made a mistake, the original testcase with replaced by the code in Comment #3 is still rejected. However, it's true that all the up to date compilers I have at hand reject it with the same kind of e

[Bug c++/57248] string parameter to constexpr functions

2014-09-05 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57248 Paolo Carlini changed: What|Removed |Added CC||paolo.carlini at oracle dot com --- Comm

[Bug c++/57248] string parameter to constexpr functions

2013-05-23 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57248 --- Comment #4 from Paolo Carlini --- Thanks Daniel. In fact - I should have attached some code - nothing about & co matters, you can remove it completely and replace std::get with, say, template constexpr int get() { return 1; }

[Bug c++/57248] string parameter to constexpr functions

2013-05-23 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57248 --- Comment #3 from Daniel Krügler --- The code looks valid to me. I think that Paolo just wanted to point out that the library implementation does not cause this. I agree with him and can confirm that the code is also rejected when emulating the

[Bug c++/57248] string parameter to constexpr functions

2013-05-23 Thread sutambe at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57248 --- Comment #2 from Sumant Tambe --- I'm a bit confused. Is the program illformed or supposed to compile but does not.

[Bug c++/57248] string parameter to constexpr functions

2013-05-10 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57248 Paolo Carlini changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|