public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/108047] New: ice: unexpected expression of kind implicit_conv_expr
@ 2022-12-10 11:38 dcb314 at hotmail dot com
  2022-12-11  8:32 ` [Bug c++/108047] " dcb314 at hotmail dot com
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: dcb314 at hotmail dot com @ 2022-12-10 11:38 UTC (permalink / raw)
  To: gcc-bugs

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.

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

end of thread, other threads:[~2023-01-23 15:45 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-10 11:38 [Bug c++/108047] New: ice: unexpected expression of kind implicit_conv_expr dcb314 at hotmail dot com
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

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).