public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/108563] New: [concepts] ICE (segfault) when requiring sizeof(variable_tempalate_v<type>)
@ 2023-01-26 21:43 ldalessandro at gmail dot com
  2023-02-06 13:40 ` [Bug c++/108563] [10/11/12/13 Regression] [concepts] ICE (segfault) when requiring sizeof(variable_tempalate_v<type>) since r10-7441-ga7ea3d2ced786c45 marxin at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: ldalessandro at gmail dot com @ 2023-01-26 21:43 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108563
           Summary: [concepts] ICE (segfault) when requiring
                    sizeof(variable_tempalate_v<type>)
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ldalessandro at gmail dot com
  Target Milestone: ---

The following valid code causes an ICE (segfault)

    template <class T>
    struct foo {
        static constexpr int value = 0;
    };

    template <class T>
    inline constexpr int foo_v = foo<T>::value;

    static_assert(requires {  sizeof(foo_v<int>); });

Workaround is to use `foo<int>::value` instead of the variable template.

Live example: https://godbolt.org/z/s7szdEdeP

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

* [Bug c++/108563] [10/11/12/13 Regression] [concepts] ICE (segfault) when requiring sizeof(variable_tempalate_v<type>) since r10-7441-ga7ea3d2ced786c45
  2023-01-26 21:43 [Bug c++/108563] New: [concepts] ICE (segfault) when requiring sizeof(variable_tempalate_v<type>) ldalessandro at gmail dot com
@ 2023-02-06 13:40 ` marxin at gcc dot gnu.org
  2023-02-06 13:52 ` ppalka at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2023-02-06 13:40 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
            Summary|[concepts] ICE (segfault)   |[10/11/12/13 Regression]
                   |when requiring              |[concepts] ICE (segfault)
                   |sizeof(variable_tempalate_v |when requiring
                   |<type>)                     |sizeof(variable_tempalate_v
                   |                            |<type>) since
                   |                            |r10-7441-ga7ea3d2ced786c45
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |ppalka at gcc dot gnu.org
   Last reconfirmed|                            |2023-02-06
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
I think it started with r10-7441-ga7ea3d2ced786c45.

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

* [Bug c++/108563] [10/11/12/13 Regression] [concepts] ICE (segfault) when requiring sizeof(variable_tempalate_v<type>) since r10-7441-ga7ea3d2ced786c45
  2023-01-26 21:43 [Bug c++/108563] New: [concepts] ICE (segfault) when requiring sizeof(variable_tempalate_v<type>) ldalessandro at gmail dot com
  2023-02-06 13:40 ` [Bug c++/108563] [10/11/12/13 Regression] [concepts] ICE (segfault) when requiring sizeof(variable_tempalate_v<type>) since r10-7441-ga7ea3d2ced786c45 marxin at gcc dot gnu.org
@ 2023-02-06 13:52 ` ppalka at gcc dot gnu.org
  2023-03-05 19:53 ` ppalka at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ppalka at gcc dot gnu.org @ 2023-02-06 13:52 UTC (permalink / raw)
  To: gcc-bugs

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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |ppalka at gcc dot gnu.org
             Status|NEW                         |ASSIGNED

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

* [Bug c++/108563] [10/11/12/13 Regression] [concepts] ICE (segfault) when requiring sizeof(variable_tempalate_v<type>) since r10-7441-ga7ea3d2ced786c45
  2023-01-26 21:43 [Bug c++/108563] New: [concepts] ICE (segfault) when requiring sizeof(variable_tempalate_v<type>) ldalessandro at gmail dot com
  2023-02-06 13:40 ` [Bug c++/108563] [10/11/12/13 Regression] [concepts] ICE (segfault) when requiring sizeof(variable_tempalate_v<type>) since r10-7441-ga7ea3d2ced786c45 marxin at gcc dot gnu.org
  2023-02-06 13:52 ` ppalka at gcc dot gnu.org
@ 2023-03-05 19:53 ` ppalka at gcc dot gnu.org
  2023-03-15 10:01 ` [Bug c++/108563] [10/11/12 " rguenth at gcc dot gnu.org
  2023-07-07 10:44 ` [Bug c++/108563] [11/12 " rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: ppalka at gcc dot gnu.org @ 2023-03-05 19:53 UTC (permalink / raw)
  To: gcc-bugs

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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=108848

--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Looks like r13-6380-gd3d205ab440886 incidentally fixed this testcase on trunk
as well

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

* [Bug c++/108563] [10/11/12 Regression] [concepts] ICE (segfault) when requiring sizeof(variable_tempalate_v<type>) since r10-7441-ga7ea3d2ced786c45
  2023-01-26 21:43 [Bug c++/108563] New: [concepts] ICE (segfault) when requiring sizeof(variable_tempalate_v<type>) ldalessandro at gmail dot com
                   ` (2 preceding siblings ...)
  2023-03-05 19:53 ` ppalka at gcc dot gnu.org
@ 2023-03-15 10:01 ` rguenth at gcc dot gnu.org
  2023-07-07 10:44 ` [Bug c++/108563] [11/12 " rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-03-15 10:01 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[10/11/12/13 Regression]    |[10/11/12 Regression]
                   |[concepts] ICE (segfault)   |[concepts] ICE (segfault)
                   |when requiring              |when requiring
                   |sizeof(variable_tempalate_v |sizeof(variable_tempalate_v
                   |<type>) since               |<type>) since
                   |r10-7441-ga7ea3d2ced786c45  |r10-7441-ga7ea3d2ced786c45
      Known to work|                            |13.0
   Target Milestone|---                         |10.5
           Priority|P3                          |P2

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

* [Bug c++/108563] [11/12 Regression] [concepts] ICE (segfault) when requiring sizeof(variable_tempalate_v<type>) since r10-7441-ga7ea3d2ced786c45
  2023-01-26 21:43 [Bug c++/108563] New: [concepts] ICE (segfault) when requiring sizeof(variable_tempalate_v<type>) ldalessandro at gmail dot com
                   ` (3 preceding siblings ...)
  2023-03-15 10:01 ` [Bug c++/108563] [10/11/12 " rguenth at gcc dot gnu.org
@ 2023-07-07 10:44 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 10:44 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.5                        |11.5

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10 branch is being closed.

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

end of thread, other threads:[~2023-07-07 10:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-26 21:43 [Bug c++/108563] New: [concepts] ICE (segfault) when requiring sizeof(variable_tempalate_v<type>) ldalessandro at gmail dot com
2023-02-06 13:40 ` [Bug c++/108563] [10/11/12/13 Regression] [concepts] ICE (segfault) when requiring sizeof(variable_tempalate_v<type>) since r10-7441-ga7ea3d2ced786c45 marxin at gcc dot gnu.org
2023-02-06 13:52 ` ppalka at gcc dot gnu.org
2023-03-05 19:53 ` ppalka at gcc dot gnu.org
2023-03-15 10:01 ` [Bug c++/108563] [10/11/12 " rguenth at gcc dot gnu.org
2023-07-07 10:44 ` [Bug c++/108563] [11/12 " rguenth 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).