public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/111222] New: ICE on basic_string_view with missing template argument
@ 2023-08-29  6:01 stevenxia990430 at gmail dot com
  2023-08-29  6:06 ` [Bug c++/111222] ICE on basic_string_view and alias templates " pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: stevenxia990430 at gmail dot com @ 2023-08-29  6:01 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111222
           Summary: ICE on basic_string_view with missing template
                    argument
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: stevenxia990430 at gmail dot com
  Target Milestone: ---

The following invalid program reports an internal compiler error. Failed on
gcc-trunk. 

To quickly reproduce: https://gcc.godbolt.org/z/To8EdvdhM
```
#include <string_view>

template <typename T>
using string_view = std::basic_string_view<T>;

string_view my_string = "12345";
```

note after providing the valid declaration (i.e., string_view<char> my_string =
"12345";) the program compiles successfully

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

end of thread, other threads:[~2024-02-02 17:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-29  6:01 [Bug c++/111222] New: ICE on basic_string_view with missing template argument stevenxia990430 at gmail dot com
2023-08-29  6:06 ` [Bug c++/111222] ICE on basic_string_view and alias templates " pinskia at gcc dot gnu.org
2023-08-29  6:08 ` stevenxia990430 at gmail dot com
2023-10-13 18:44 ` mpolacek at gcc dot gnu.org
2023-10-13 18:51 ` ppalka at gcc dot gnu.org
2024-02-02 17:59 ` ppalka 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).