[Bug c++/81054] [7/8 Regression] ICE with volatile variable in constexpr function

2018-01-17 Thread paolo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81054

--- Comment #5 from paolo at gcc dot gnu.org  ---
Author: paolo
Date: Wed Jan 17 20:29:25 2018
New Revision: 256817

URL: https://gcc.gnu.org/viewcvs?rev=256817=gcc=rev
Log:
/cp
2018-01-17  Paolo Carlini  

PR c++/81054
* constexpr.c (ensure_literal_type_for_constexpr_object): Return
error_mark_node when we give an error.
* decl.c (cp_finish_decl): Use the latter.

/testsuite
2018-01-17  Paolo Carlini  

PR c++/81054
* g++.dg/cpp0x/constexpr-ice19.C: New.

Modified:
trunk/gcc/testsuite/ChangeLog

[Bug c++/81054] [7/8 Regression] ICE with volatile variable in constexpr function

2018-01-17 Thread paolo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81054

--- Comment #4 from paolo at gcc dot gnu.org  ---
Author: paolo
Date: Wed Jan 17 20:28:47 2018
New Revision: 256816

URL: https://gcc.gnu.org/viewcvs?rev=256816=gcc=rev
Log:
/cp
2018-01-17  Paolo Carlini  

PR c++/81054
* constexpr.c (ensure_literal_type_for_constexpr_object): Return
error_mark_node when we give an error.
* decl.c (cp_finish_decl): Use the latter.

/testsuite
2018-01-17  Paolo Carlini  

PR c++/81054
* g++.dg/cpp0x/constexpr-ice19.C: New.

Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-ice19.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/constexpr.c
trunk/gcc/cp/decl.c

[Bug c++/81054] [7/8 Regression] ICE with volatile variable in constexpr function

2018-01-16 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81054

Paolo Carlini  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |paolo.carlini at oracle 
dot com

--- Comment #3 from Paolo Carlini  ---
Mine.

[Bug c++/81054] [7/8 Regression] ICE with volatile variable in constexpr function

2017-10-14 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81054

Paolo Carlini  changed:

   What|Removed |Added

 CC||jakub at gcc dot gnu.org

--- Comment #2 from Paolo Carlini  ---
Let's add Jakub in CC, then.

[Bug c++/81054] [7/8 Regression] ICE with volatile variable in constexpr function

2017-08-16 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81054

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|7.2 |7.3

[Bug c++/81054] [7/8 Regression] ICE with volatile variable in constexpr function

2017-08-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81054

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|7.2 |7.3

--- Comment #2 from Richard Biener  ---
GCC 7.2 is being released, adjusting target milestone.

--- Comment #3 from Richard Biener  ---
GCC 7.2 is being released, adjusting target milestone.

[Bug c++/81054] [7/8 Regression] ICE with volatile variable in constexpr function

2017-08-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81054

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|7.2 |7.3

--- Comment #2 from Richard Biener  ---
GCC 7.2 is being released, adjusting target milestone.

--- Comment #3 from Richard Biener  ---
GCC 7.2 is being released, adjusting target milestone.

[Bug c++/81054] [7/8 Regression] ICE with volatile variable in constexpr function

2017-06-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81054

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P4
   Target Milestone|--- |7.2

[Bug c++/81054] [7/8 Regression] ICE with volatile variable in constexpr function

2017-06-12 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81054

Martin Liška  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2017-06-12
 CC||marxin at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #1 from Martin Liška  ---
Confirmed, started with r241137.