public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/95951] New: ICE in extract_call_expr, at cp/call.c:6614
@ 2020-06-28 21:33 bence.kodaj at gmail dot com
  2020-06-28 23:00 ` [Bug c++/95951] " mpolacek at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: bence.kodaj at gmail dot com @ 2020-06-28 21:33 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95951
           Summary: ICE in extract_call_expr, at cp/call.c:6614
           Product: gcc
           Version: 10.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bence.kodaj at gmail dot com
  Target Milestone: ---

The following code causes an ICE in extract_call_expr, at cp/call.c:6614:

----------------------
#include <array>

template< std::size_t N >
struct StrLiteral
{
    const std::array< char, N > _str;

    consteval StrLiteral( const char ( &a )[ N ] )
    : _str{ std::to_array( a ) }
    {}

    consteval auto operator == ( const StrLiteral & other ) const { return _str
== other._str; }
};


const auto e = StrLiteral( "a" ) == StrLiteral( "b" );
----------------------

Godbolt URL: https://godbolt.org/z/VaKHKh

OS: Ubuntu 18.04

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/95951] ICE in extract_call_expr, at cp/call.c:6614
  2020-06-28 21:33 [Bug c++/95951] New: ICE in extract_call_expr, at cp/call.c:6614 bence.kodaj at gmail dot com
@ 2020-06-28 23:00 ` mpolacek at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-06-28 23:00 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
                 CC|                            |mpolacek at gcc dot gnu.org
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Already fixed.

*** This bug has been marked as a duplicate of bug 95629 ***

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-28 23:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-28 21:33 [Bug c++/95951] New: ICE in extract_call_expr, at cp/call.c:6614 bence.kodaj at gmail dot com
2020-06-28 23:00 ` [Bug c++/95951] " mpolacek at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).