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++/54126] ICE on constexpr move ctor with const ref type instead of error


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54126

--- Comment #5 from Ilya Mikhaltsou <morpheby at gmail dot com> 2013-02-13 12:20:21 UTC ---
(In reply to comment #4)
> Created attachment 29430 [details]
> simple fail case
> 
> I think I have an even simplier test case, I guess it's the same problem (at
> least the ICE message matches). I also think that bug 51707 is actually the
> same problem.

Yes, looks like both mine and yours testcase actually do the same - they
attempt to move some constexpr to another, and gcc fails. That looks like not
implemented or buggy check for error.

bug 51707 looks to be error on correct code and possibly fails on getting
constant l-value reference.

If they are exactly the same, then the bug actually lies in contexpr reference
mechanics, and gcc fails on getting constexpr reference of any kind, not on
moving constexpr. I'll try to investigate if it is the case as soon as I have
some free time.


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