public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/61614] [4.9/4.10 Regression] Bogus error: taking address of temporary array
       [not found] <bug-61614-4@http.gcc.gnu.org/bugzilla/>
@ 2014-06-26  8:19 ` paolo.carlini at oracle dot com
  2014-06-26  8:31 ` paolo.carlini at oracle dot com
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-06-26  8:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
What do you mean by "sometime after"? Is that commit or something else, later?
In case we should bisect.


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

* [Bug c++/61614] [4.9/4.10 Regression] Bogus error: taking address of temporary array
       [not found] <bug-61614-4@http.gcc.gnu.org/bugzilla/>
  2014-06-26  8:19 ` [Bug c++/61614] [4.9/4.10 Regression] Bogus error: taking address of temporary array paolo.carlini at oracle dot com
@ 2014-06-26  8:31 ` paolo.carlini at oracle dot com
  2014-06-26  9:57 ` paolo.carlini at oracle dot com
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-06-26  8:31 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-06-26
     Ever confirmed|0                           |1

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Had a quick look and indeed must be a later commit (the conditional added in
r200178 isn't reached). We should bisect.


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

* [Bug c++/61614] [4.9/4.10 Regression] Bogus error: taking address of temporary array
       [not found] <bug-61614-4@http.gcc.gnu.org/bugzilla/>
  2014-06-26  8:19 ` [Bug c++/61614] [4.9/4.10 Regression] Bogus error: taking address of temporary array paolo.carlini at oracle dot com
  2014-06-26  8:31 ` paolo.carlini at oracle dot com
@ 2014-06-26  9:57 ` paolo.carlini at oracle dot com
  2014-06-26 11:36 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-06-26  9:57 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
It's r204228:

2013-10-30  Jason Merrill  <jason@redhat.com>

    * semantics.c (finish_compound_literal): Don't create a static variable
    inside cp_unevaluated_operand.

indeed, the error happens in decay_conversion in:

      if (TREE_CODE (exp) == TARGET_EXPR)
    {
      if (complain & tf_error)
        error_at (loc, "taking address of temporary array");

where we have a TARGET_EXPR (vs a VAR_DECL).


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

* [Bug c++/61614] [4.9/4.10 Regression] Bogus error: taking address of temporary array
       [not found] <bug-61614-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2014-06-26  9:57 ` paolo.carlini at oracle dot com
@ 2014-06-26 11:36 ` rguenth at gcc dot gnu.org
  2014-06-26 12:58 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-06-26 11:36 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unknown                     |4.9.0
   Target Milestone|---                         |4.9.1


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

* [Bug c++/61614] [4.9/4.10 Regression] Bogus error: taking address of temporary array
       [not found] <bug-61614-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2014-06-26 11:36 ` rguenth at gcc dot gnu.org
@ 2014-06-26 12:58 ` rguenth at gcc dot gnu.org
  2014-06-27 14:05 ` paolo at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-06-26 12:58 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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

* [Bug c++/61614] [4.9/4.10 Regression] Bogus error: taking address of temporary array
       [not found] <bug-61614-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2014-06-26 12:58 ` rguenth at gcc dot gnu.org
@ 2014-06-27 14:05 ` paolo at gcc dot gnu.org
  2014-06-27 14:34 ` paolo at gcc dot gnu.org
  2014-06-27 14:35 ` paolo.carlini at oracle dot com
  7 siblings, 0 replies; 8+ messages in thread
From: paolo at gcc dot gnu.org @ 2014-06-27 14:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Fri Jun 27 14:04:28 2014
New Revision: 212073

URL: https://gcc.gnu.org/viewcvs?rev=212073&root=gcc&view=rev
Log:
/cp
2014-06-27  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/61614
    * semantics.c (finish_compound_literal): Revert r204228.

/testsuite
2014-06-27  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/61614
    * g++.dg/ext/complit14.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/ext/complit14.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/61614] [4.9/4.10 Regression] Bogus error: taking address of temporary array
       [not found] <bug-61614-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2014-06-27 14:05 ` paolo at gcc dot gnu.org
@ 2014-06-27 14:34 ` paolo at gcc dot gnu.org
  2014-06-27 14:35 ` paolo.carlini at oracle dot com
  7 siblings, 0 replies; 8+ messages in thread
From: paolo at gcc dot gnu.org @ 2014-06-27 14:34 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Fri Jun 27 14:33:39 2014
New Revision: 212074

URL: https://gcc.gnu.org/viewcvs?rev=212074&root=gcc&view=rev
Log:
/cp
2014-06-27  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/61614
    * semantics.c (finish_compound_literal): Revert r204228.

/testsuite
2014-06-27  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/61614
    * g++.dg/ext/complit14.C: New.

Added:
    branches/gcc-4_9-branch/gcc/testsuite/g++.dg/ext/complit14.C
Modified:
    branches/gcc-4_9-branch/gcc/cp/ChangeLog
    branches/gcc-4_9-branch/gcc/cp/semantics.c
    branches/gcc-4_9-branch/gcc/testsuite/ChangeLog


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

* [Bug c++/61614] [4.9/4.10 Regression] Bogus error: taking address of temporary array
       [not found] <bug-61614-4@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2014-06-27 14:34 ` paolo at gcc dot gnu.org
@ 2014-06-27 14:35 ` paolo.carlini at oracle dot com
  7 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-06-27 14:35 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
           Assignee|paolo.carlini at oracle dot com    |unassigned at gcc dot gnu.org

--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed mainline and 4.9.1.


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

end of thread, other threads:[~2014-06-27 14:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-61614-4@http.gcc.gnu.org/bugzilla/>
2014-06-26  8:19 ` [Bug c++/61614] [4.9/4.10 Regression] Bogus error: taking address of temporary array paolo.carlini at oracle dot com
2014-06-26  8:31 ` paolo.carlini at oracle dot com
2014-06-26  9:57 ` paolo.carlini at oracle dot com
2014-06-26 11:36 ` rguenth at gcc dot gnu.org
2014-06-26 12:58 ` rguenth at gcc dot gnu.org
2014-06-27 14:05 ` paolo at gcc dot gnu.org
2014-06-27 14:34 ` paolo at gcc dot gnu.org
2014-06-27 14:35 ` paolo.carlini at oracle dot com

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