public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/64989] New: constant-initialization of self-referencing array
@ 2015-02-09 20:24 jason at gcc dot gnu.org
  2015-02-09 20:25 ` [Bug c++/64989] " jason at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2015-02-09 20:24 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 64989
           Summary: constant-initialization of self-referencing array
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jason at gcc dot gnu.org
                CC: jakub at gcc dot gnu.org, jason at gcc dot gnu.org,
                    wolfgang.roehrl@gi-de.com
        Depends on: 64899

+++ This bug was initially created as a clone of Bug #64899 +++

The testcase in bug 64899 works now, but this one still doesn't.

struct S
{
  void *p;
  constexpr S (): p(this) {}
};

constexpr S sa[2];
#define SA(X) static_assert((X),#X)
SA(sa[1].p == &sa[1]);


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

* [Bug c++/64989] constant-initialization of self-referencing array
  2015-02-09 20:24 [Bug c++/64989] New: constant-initialization of self-referencing array jason at gcc dot gnu.org
@ 2015-02-09 20:25 ` jason at gcc dot gnu.org
  2015-03-18 20:07 ` paolo.carlini at oracle dot com
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2015-02-09 20:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64989
Bug 64989 depends on bug 64899, which changed state.

Bug 64899 Summary: Illegal dynamic initialization
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64899

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED


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

* [Bug c++/64989] constant-initialization of self-referencing array
  2015-02-09 20:24 [Bug c++/64989] New: constant-initialization of self-referencing array jason at gcc dot gnu.org
  2015-02-09 20:25 ` [Bug c++/64989] " jason at gcc dot gnu.org
@ 2015-03-18 20:07 ` paolo.carlini at oracle dot com
  2015-07-25  6:55 ` jason at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-03-18 20:07 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-03-18
                 CC|jason at gcc dot gnu.org           |
             Blocks|                            |55004
     Ever confirmed|0                           |1


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

* [Bug c++/64989] constant-initialization of self-referencing array
  2015-02-09 20:24 [Bug c++/64989] New: constant-initialization of self-referencing array jason at gcc dot gnu.org
  2015-02-09 20:25 ` [Bug c++/64989] " jason at gcc dot gnu.org
  2015-03-18 20:07 ` paolo.carlini at oracle dot com
@ 2015-07-25  6:55 ` jason at gcc dot gnu.org
  2015-07-25  7:13 ` jason at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2015-07-25  6:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Sat Jul 25 06:54:57 2015
New Revision: 226207

URL: https://gcc.gnu.org/viewcvs?rev=226207&root=gcc&view=rev
Log:
        PR c++/64989
        * pt.c (splice_late_return_type): Correct deduced return type for
        abbreviated function template.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1z/abbrev1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c


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

* [Bug c++/64989] constant-initialization of self-referencing array
  2015-02-09 20:24 [Bug c++/64989] New: constant-initialization of self-referencing array jason at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2015-07-25  6:55 ` jason at gcc dot gnu.org
@ 2015-07-25  7:13 ` jason at gcc dot gnu.org
  2021-12-07 12:27 ` pinskia at gcc dot gnu.org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2015-07-25  7:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Jason Merrill from comment #1)
> 	PR c++/64989
> 	* pt.c (splice_late_return_type): Correct deduced return type for
> 	abbreviated function template.

Oops, wrong PR number.
>From gcc-bugs-return-493309-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Jul 25 07:13:08 2015
Return-Path: <gcc-bugs-return-493309-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103414 invoked by alias); 25 Jul 2015 07:13:08 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 103020 invoked by uid 55); 25 Jul 2015 07:13:04 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/64969] generic functions do not work with placeholder return types
Date: Sat, 25 Jul 2015 07:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.2
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64969-4-1ESgovGOAL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64969-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64969-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-07/txt/msg02199.txt.bz2
Content-length: 424

https://gcc.gnu.org/bugzilla/show_bug.cgi?idd969

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Sat Jul 25 07:12:31 2015
New Revision: 226208

URL: https://gcc.gnu.org/viewcvs?rev"6208&root=gcc&view=rev
Log:
        PR c++/64969
        * pt.c (splice_late_return_type): Correct deduced return type for
        abbreviated function template.

Modified:
    trunk/gcc/cp/ChangeLog


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

* [Bug c++/64989] constant-initialization of self-referencing array
  2015-02-09 20:24 [Bug c++/64989] New: constant-initialization of self-referencing array jason at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2015-07-25  7:13 ` jason at gcc dot gnu.org
@ 2021-12-07 12:27 ` pinskia at gcc dot gnu.org
  2021-12-09  3:06 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-07 12:27 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |richard-gccbugzilla@metafoo
                   |                            |.co.uk

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 101370 has been marked as a duplicate of this bug. ***

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

* [Bug c++/64989] constant-initialization of self-referencing array
  2015-02-09 20:24 [Bug c++/64989] New: constant-initialization of self-referencing array jason at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2021-12-07 12:27 ` pinskia at gcc dot gnu.org
@ 2021-12-09  3:06 ` pinskia at gcc dot gnu.org
  2021-12-14 16:25 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-09  3:06 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vincent.hamp at higaski dot at

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 99059 has been marked as a duplicate of this bug. ***

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

* [Bug c++/64989] constant-initialization of self-referencing array
  2015-02-09 20:24 [Bug c++/64989] New: constant-initialization of self-referencing array jason at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2021-12-09  3:06 ` pinskia at gcc dot gnu.org
@ 2021-12-14 16:25 ` pinskia at gcc dot gnu.org
  2021-12-14 16:27 ` pinskia at gcc dot gnu.org
  2022-10-27  2:40 ` pinskia at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-14 16:25 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |barry.revzin at gmail dot com

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 103712 has been marked as a duplicate of this bug. ***

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

* [Bug c++/64989] constant-initialization of self-referencing array
  2015-02-09 20:24 [Bug c++/64989] New: constant-initialization of self-referencing array jason at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2021-12-14 16:25 ` pinskia at gcc dot gnu.org
@ 2021-12-14 16:27 ` pinskia at gcc dot gnu.org
  2022-10-27  2:40 ` pinskia at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-14 16:27 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #4)
> Can the bug be marked as resolved?

No, it was the wrong bug #.

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

* [Bug c++/64989] constant-initialization of self-referencing array
  2015-02-09 20:24 [Bug c++/64989] New: constant-initialization of self-referencing array jason at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2021-12-14 16:27 ` pinskia at gcc dot gnu.org
@ 2022-10-27  2:40 ` pinskia at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-10-27  2:40 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 105619 has been marked as a duplicate of this bug. ***

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

end of thread, other threads:[~2022-10-27  2:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-09 20:24 [Bug c++/64989] New: constant-initialization of self-referencing array jason at gcc dot gnu.org
2015-02-09 20:25 ` [Bug c++/64989] " jason at gcc dot gnu.org
2015-03-18 20:07 ` paolo.carlini at oracle dot com
2015-07-25  6:55 ` jason at gcc dot gnu.org
2015-07-25  7:13 ` jason at gcc dot gnu.org
2021-12-07 12:27 ` pinskia at gcc dot gnu.org
2021-12-09  3:06 ` pinskia at gcc dot gnu.org
2021-12-14 16:25 ` pinskia at gcc dot gnu.org
2021-12-14 16:27 ` pinskia at gcc dot gnu.org
2022-10-27  2:40 ` pinskia 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).