public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/108047] New: ice: unexpected expression of kind implicit_conv_expr
Date: Sat, 10 Dec 2022 11:38:27 +0000	[thread overview]
Message-ID: <bug-108047-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 108047
           Summary: ice: unexpected expression of kind implicit_conv_expr
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

For this C++ source code:

namespace std {
template <class> class initializer_list;
struct Trans_NS___cxx11_basic_string;
struct vector {
  vector(initializer_list<Trans_NS___cxx11_basic_string>);
};
struct Trans_NS___cxx11_basic_string {
  Trans_NS___cxx11_basic_string(const char *);
};
} // namespace std
constexpr auto kBufVecX = "";
template <typename> struct TestXswap {
  std::vector BuffersIn() { return {kBufVecX}; }
};


does this 

$ ~/gcc/results.20221208.asan.ubsan/bin/g++ -c -w bug866.cc
bug866.cc: In member function ‘std::vector TestXswap< <template-parameter-1-1>
>::BuffersIn()’:
bug866.cc:13:45: internal compiler error: unexpected expression
‘(std::Trans_NS___cxx11_basic_string)kBufVecX’ of kind implicit_conv_expr
   13 |   std::vector BuffersIn() { return {kBufVecX}; }
      |                                             ^
0x7386ae cxx_eval_constant_expression(constexpr_ctx const*, tree_node*,
value_cat, bool*, bool*, tree_node**)
        ../../trunk.d1/gcc/cp/constexpr.cc:8013

It was ok the day before:

$ ~/gcc/results.20221207.asan.ubsan/bin/g++ -c -w bug866.cc
$ 

The git hashes are 3ad0f470c16d5528 and 7410032a772a9e77, a range
of 24 commits.

             reply	other threads:[~2022-12-10 11:38 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-10 11:38 dcb314 at hotmail dot com [this message]
2022-12-11  8:32 ` [Bug c++/108047] " dcb314 at hotmail dot com
2022-12-11  8:57 ` dcb314 at hotmail dot com
2022-12-11  9:26 ` dcb314 at hotmail dot com
2022-12-12 12:06 ` slyfox at gcc dot gnu.org
2022-12-12 13:22 ` [Bug c++/108047] [13 Regression] ICE: unexpected expression of kind implicit_conv_expr since r13-4564-gd081807d8d70e3e8 marxin at gcc dot gnu.org
2022-12-12 16:39 ` pinskia at gcc dot gnu.org
2022-12-21 11:45 ` rguenth at gcc dot gnu.org
2022-12-21 22:19 ` slyfox at gcc dot gnu.org
2023-01-02 16:41 ` pinskia at gcc dot gnu.org
2023-01-06 11:20 ` jakub at gcc dot gnu.org
2023-01-06 18:50 ` pinskia at gcc dot gnu.org
2023-01-06 20:06 ` slyfox at gcc dot gnu.org
2023-01-09 22:41 ` cvs-commit at gcc dot gnu.org
2023-01-23 15:41 ` mpolacek at gcc dot gnu.org
2023-01-23 15:45 ` jakub at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-108047-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).