[Bug c++/69263] [6 Regression] internal compiler error: in cxx_eval_store_expression

2016-01-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69263

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P1

[Bug c++/69263] [6 Regression] internal compiler error: in cxx_eval_store_expression

2016-01-14 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69263

Marek Polacek  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |mpolacek at gcc dot 
gnu.org

--- Comment #4 from Marek Polacek  ---
Let me have a crack at this.

[Bug c++/69263] [6 Regression] internal compiler error: in cxx_eval_store_expression

2016-01-14 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69263

Jason Merrill  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 CC||jason at gcc dot gnu.org
 Resolution|--- |DUPLICATE
   Assignee|mpolacek at gcc dot gnu.org|jason at gcc dot gnu.org

--- Comment #5 from Jason Merrill  ---
Same issue as 69261.

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

[Bug c++/69263] [6 Regression] internal compiler error: in cxx_eval_store_expression

2016-01-13 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69263

Andrew Pinski  changed:

   What|Removed |Added

   Target Milestone|--- |6.0

[Bug c++/69263] [6 Regression] internal compiler error: in cxx_eval_store_expression

2016-01-13 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69263

Marek Polacek  changed:

   What|Removed |Added

 CC||mpolacek at gcc dot gnu.org

--- Comment #3 from Marek Polacek  ---
commit 7963b19da1ee84927717a6465444bad58625d449
Author: jason 
Date:   Mon Aug 17 18:42:04 2015 +

PR c++/67104
* constexpr.c (array_index_cmp, find_array_ctor_elt): New.
(cxx_eval_array_reference, cxx_eval_store_expression): Use them.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226949
138bc75d-0d04-0410-961f-82ee72b054a4

[Bug c++/69263] [6 Regression] internal compiler error: in cxx_eval_store_expression

2016-01-13 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69263

Markus Trippelsdorf  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2016-01-13
 CC||trippels at gcc dot gnu.org
  Known to work||5.3.1
Summary|internal compiler error: in |[6 Regression] internal
   |cxx_eval_store_expression   |compiler error: in
   ||cxx_eval_store_expression
 Ever confirmed|0   |1
  Known to fail||6.0

--- Comment #2 from Markus Trippelsdorf  ---
markus@x4 tmp % cat str.ii
template  struct string_constexpr {
  string_constexpr() = default;
  template  string_constexpr();
  char data[N];
};
template  constexpr string_constexpr s(char const (&)[N]) {
  string_constexpr c{};
  for (int i = 0; i < N; i++)
c.data[i] = i;
}
auto a = s("bla");

markus@x4 tmp % g++ -c str.ii
str.ii:11:17:   in constexpr expansion of ‘s<4>("bla")’
str.ii:11:17: internal compiler error: in cxx_eval_store_expression, at
cp/constexpr.c:2807
 auto a = s("bla");
 ^

0x80cf39 cxx_eval_store_expression
../../gcc/gcc/cp/constexpr.c:2807
0x80a2be cxx_eval_constant_expression
../../gcc/gcc/cp/constexpr.c:3311
0x809ee1 cxx_eval_constant_expression
../../gcc/gcc/cp/constexpr.c:3570
0x809dbc cxx_eval_constant_expression
../../gcc/gcc/cp/constexpr.c:3348
0x809dbc cxx_eval_constant_expression
../../gcc/gcc/cp/constexpr.c:3348
0x80ee61 cxx_eval_statement_list
../../gcc/gcc/cp/constexpr.c:3027
0x80a7dc cxx_eval_loop_expr
../../gcc/gcc/cp/constexpr.c:3054
0x80a7dc cxx_eval_constant_expression
../../gcc/gcc/cp/constexpr.c:3680
0x80ee61 cxx_eval_statement_list
../../gcc/gcc/cp/constexpr.c:3027
0x80a6cd cxx_eval_constant_expression
../../gcc/gcc/cp/constexpr.c:3614
0x80a89f cxx_eval_constant_expression
../../gcc/gcc/cp/constexpr.c:3620
0x80ee61 cxx_eval_statement_list
../../gcc/gcc/cp/constexpr.c:3027
0x80a6cd cxx_eval_constant_expression
../../gcc/gcc/cp/constexpr.c:3614
0x80a89f cxx_eval_constant_expression
../../gcc/gcc/cp/constexpr.c:3620
0x808ef7 cxx_eval_call_expression
../../gcc/gcc/cp/constexpr.c:1386
0x80a856 cxx_eval_constant_expression
../../gcc/gcc/cp/constexpr.c:3237
0x80f0e8 cxx_eval_outermost_constant_expr
../../gcc/gcc/cp/constexpr.c:3773
0x8117cf maybe_constant_init(tree_node*, tree_node*)
../../gcc/gcc/cp/constexpr.c:4067
0x68ac47 store_init_value(tree_node*, tree_node*, vec**, int)
../../gcc/gcc/cp/typeck2.c:822
0x5f2ea2 check_initializer
../../gcc/gcc/cp/decl.c:6137