public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/97624] New: ICE: in dependent_type_p, at cp/pt.c:26515
@ 2020-10-29  7:31 eugene at hutorny dot in.ua
  2020-10-29  7:31 ` [Bug c++/97624] " eugene at hutorny dot in.ua
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: eugene at hutorny dot in.ua @ 2020-10-29  7:31 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97624
           Summary: ICE: in dependent_type_p, at cp/pt.c:26515
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: eugene at hutorny dot in.ua
  Target Milestone: ---

Created attachment 49463
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49463&action=edit
Source file with minimal reproduceable code

C++ compiler fails on the following example:

template<unsigned TAG, typename T=const char*>
struct Tag {
        static constexpr auto tag = TAG;
        T value;
};

template<typename ... Tagged>
void bar(Tagged&& ... tagged) {
        const char* v[sizeof...(Tagged)] = {
        [Tagged::tag] = tagged.value ...
    }; 
}

using O = Tag<0>;

void foo() {
        bar(O{"ICE"});
}

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

* [Bug c++/97624] ICE: in dependent_type_p, at cp/pt.c:26515
  2020-10-29  7:31 [Bug c++/97624] New: ICE: in dependent_type_p, at cp/pt.c:26515 eugene at hutorny dot in.ua
@ 2020-10-29  7:31 ` eugene at hutorny dot in.ua
  2020-10-29  8:52 ` marxin at gcc dot gnu.org
  2020-10-29 15:12 ` mpolacek at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: eugene at hutorny dot in.ua @ 2020-10-29  7:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Eugene <eugene at hutorny dot in.ua> ---
Created attachment 49464
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49464&action=edit
Compiler output

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

* [Bug c++/97624] ICE: in dependent_type_p, at cp/pt.c:26515
  2020-10-29  7:31 [Bug c++/97624] New: ICE: in dependent_type_p, at cp/pt.c:26515 eugene at hutorny dot in.ua
  2020-10-29  7:31 ` [Bug c++/97624] " eugene at hutorny dot in.ua
@ 2020-10-29  8:52 ` marxin at gcc dot gnu.org
  2020-10-29 15:12 ` mpolacek at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-10-29  8:52 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
                 CC|                            |jason at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org,
                   |                            |mpolacek at gcc dot gnu.org
           Keywords|                            |rejects-valid
   Last reconfirmed|                            |2020-10-29

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, fails with -std=c++11 since at least 4.8.0.
Clang accepts the code.

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

* [Bug c++/97624] ICE: in dependent_type_p, at cp/pt.c:26515
  2020-10-29  7:31 [Bug c++/97624] New: ICE: in dependent_type_p, at cp/pt.c:26515 eugene at hutorny dot in.ua
  2020-10-29  7:31 ` [Bug c++/97624] " eugene at hutorny dot in.ua
  2020-10-29  8:52 ` marxin at gcc dot gnu.org
@ 2020-10-29 15:12 ` mpolacek at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-10-29 15:12 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|rejects-valid               |ice-on-valid-code
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Dup.

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

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

end of thread, other threads:[~2020-10-29 15:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-29  7:31 [Bug c++/97624] New: ICE: in dependent_type_p, at cp/pt.c:26515 eugene at hutorny dot in.ua
2020-10-29  7:31 ` [Bug c++/97624] " eugene at hutorny dot in.ua
2020-10-29  8:52 ` marxin at gcc dot gnu.org
2020-10-29 15:12 ` 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).