* [Bug c++/52596] [C++11] internal compiler error: in lvalue_kind, at cp/tree.c:153
2012-03-16 2:33 [Bug c++/52596] New: internal compiler error: in lvalue_kind, at cp/tree.c:153 jason at cornsyrup dot org
@ 2012-03-16 2:50 ` pinskia at gcc dot gnu.org
2012-03-16 2:50 ` [Bug c++/52596] [4.7 Regression] " pinskia at gcc dot gnu.org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-03-16 2:50 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52596
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|internal compiler error: in |[C++11] internal compiler
|lvalue_kind, at |error: in lvalue_kind, at
|cp/tree.c:153 |cp/tree.c:153
Severity|critical |normal
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/52596] [4.7 Regression] [C++11] internal compiler error: in lvalue_kind, at cp/tree.c:153
2012-03-16 2:33 [Bug c++/52596] New: internal compiler error: in lvalue_kind, at cp/tree.c:153 jason at cornsyrup dot org
2012-03-16 2:50 ` [Bug c++/52596] [C++11] " pinskia at gcc dot gnu.org
@ 2012-03-16 2:50 ` pinskia at gcc dot gnu.org
2012-03-16 3:19 ` pinskia at gcc dot gnu.org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-03-16 2:50 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52596
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-03-16
Ever Confirmed|0 |1
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/52596] [4.7 Regression] [C++11] internal compiler error: in lvalue_kind, at cp/tree.c:153
2012-03-16 2:33 [Bug c++/52596] New: internal compiler error: in lvalue_kind, at cp/tree.c:153 jason at cornsyrup dot org
2012-03-16 2:50 ` [Bug c++/52596] [C++11] " pinskia at gcc dot gnu.org
2012-03-16 2:50 ` [Bug c++/52596] [4.7 Regression] " pinskia at gcc dot gnu.org
@ 2012-03-16 3:19 ` pinskia at gcc dot gnu.org
2012-03-16 9:00 ` [Bug c++/52596] [4.7/4.8 " jakub at gcc dot gnu.org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-03-16 3:19 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52596
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Target Milestone|--- |4.7.0
Summary|[C++11] internal compiler |[4.7 Regression] [C++11]
|error: in lvalue_kind, at |internal compiler error: in
|cp/tree.c:153 |lvalue_kind, at
| |cp/tree.c:153
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-03-16 02:49:54 UTC ---
Confirmed reduced testcase:
struct msgpack_zone_finalizer_array {
int* tail;
};
struct msgpack_zone {
msgpack_zone_finalizer_array finalizer_array;
};
struct zone : public msgpack_zone {
template <typename T> T* allocate();
};
template <typename T>
T* zone::allocate()
{
--msgpack_zone::finalizer_array.tail;
}
--- CUT ---
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/52596] [4.7/4.8 Regression] [C++11] internal compiler error: in lvalue_kind, at cp/tree.c:153
2012-03-16 2:33 [Bug c++/52596] New: internal compiler error: in lvalue_kind, at cp/tree.c:153 jason at cornsyrup dot org
` (2 preceding siblings ...)
2012-03-16 3:19 ` pinskia at gcc dot gnu.org
@ 2012-03-16 9:00 ` jakub at gcc dot gnu.org
2012-03-20 11:10 ` paolo.carlini at oracle dot com
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-03-16 9:00 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52596
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org,
| |jason at gcc dot gnu.org
Summary|[4.7 Regression] [C++11] |[4.7/4.8 Regression]
|internal compiler error: in |[C++11] internal compiler
|lvalue_kind, at |error: in lvalue_kind, at
|cp/tree.c:153 |cp/tree.c:153
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-03-16 08:46:23 UTC ---
Started with http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174499
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/52596] [4.7/4.8 Regression] [C++11] internal compiler error: in lvalue_kind, at cp/tree.c:153
2012-03-16 2:33 [Bug c++/52596] New: internal compiler error: in lvalue_kind, at cp/tree.c:153 jason at cornsyrup dot org
` (3 preceding siblings ...)
2012-03-16 9:00 ` [Bug c++/52596] [4.7/4.8 " jakub at gcc dot gnu.org
@ 2012-03-20 11:10 ` paolo.carlini at oracle dot com
2012-03-20 12:49 ` paolo.carlini at oracle dot com
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-03-20 11:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52596
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-03-20 11:06:40 UTC ---
No ICE anymore in mainline for the reduced testcase in Comment #1. Instead,
with -std=c++11 only we reject it with:
52596.C: In member function ‘T* zone::allocate()’:
52596.C:14:35: error: lvalue required as decrement operand
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/52596] [4.7/4.8 Regression] [C++11] internal compiler error: in lvalue_kind, at cp/tree.c:153
2012-03-16 2:33 [Bug c++/52596] New: internal compiler error: in lvalue_kind, at cp/tree.c:153 jason at cornsyrup dot org
` (4 preceding siblings ...)
2012-03-20 11:10 ` paolo.carlini at oracle dot com
@ 2012-03-20 12:49 ` paolo.carlini at oracle dot com
2012-03-22 9:18 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-03-20 12:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52596
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-03-20 12:33:16 UTC ---
Oops, sorry, mainline still ICEs, had checking disabled.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/52596] [4.7/4.8 Regression] [C++11] internal compiler error: in lvalue_kind, at cp/tree.c:153
2012-03-16 2:33 [Bug c++/52596] New: internal compiler error: in lvalue_kind, at cp/tree.c:153 jason at cornsyrup dot org
` (5 preceding siblings ...)
2012-03-20 12:49 ` paolo.carlini at oracle dot com
@ 2012-03-22 9:18 ` rguenth at gcc dot gnu.org
2012-04-06 13:27 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-03-22 9:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52596
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.7.0 |4.7.1
--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-03-22 08:27:17 UTC ---
GCC 4.7.0 is being released, adjusting target milestone.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/52596] [4.7/4.8 Regression] [C++11] internal compiler error: in lvalue_kind, at cp/tree.c:153
2012-03-16 2:33 [Bug c++/52596] New: internal compiler error: in lvalue_kind, at cp/tree.c:153 jason at cornsyrup dot org
` (6 preceding siblings ...)
2012-03-22 9:18 ` rguenth at gcc dot gnu.org
@ 2012-04-06 13:27 ` jason at gcc dot gnu.org
2012-04-06 13:27 ` jason at gcc dot gnu.org
2012-04-06 13:29 ` jason at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu.org @ 2012-04-06 13:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52596
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2012-04-06 13:25:48 UTC ---
Author: jason
Date: Fri Apr 6 13:25:45 2012
New Revision: 186187
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186187
Log:
PR c++/52596
* semantics.c (finish_non_static_data_member): In templates, pass
the decl to build_qualified_name.
* tree.c (lvalue_kind) [SCOPE_REF]: Handle FIELD_DECL.
Added:
trunk/gcc/testsuite/g++.dg/template/qualified-id5.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c
trunk/gcc/cp/tree.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/52596] [4.7/4.8 Regression] [C++11] internal compiler error: in lvalue_kind, at cp/tree.c:153
2012-03-16 2:33 [Bug c++/52596] New: internal compiler error: in lvalue_kind, at cp/tree.c:153 jason at cornsyrup dot org
` (7 preceding siblings ...)
2012-04-06 13:27 ` jason at gcc dot gnu.org
@ 2012-04-06 13:27 ` jason at gcc dot gnu.org
2012-04-06 13:29 ` jason at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu.org @ 2012-04-06 13:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52596
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> 2012-04-06 13:26:17 UTC ---
Author: jason
Date: Fri Apr 6 13:26:14 2012
New Revision: 186188
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186188
Log:
PR c++/52596
* tree.c (lvalue_kind): Treat a deferred access control SCOPE_REF
as an lvalue.
Added:
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/template/qualified-id5.C
Modified:
branches/gcc-4_7-branch/gcc/cp/ChangeLog
branches/gcc-4_7-branch/gcc/cp/tree.c
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/52596] [4.7/4.8 Regression] [C++11] internal compiler error: in lvalue_kind, at cp/tree.c:153
2012-03-16 2:33 [Bug c++/52596] New: internal compiler error: in lvalue_kind, at cp/tree.c:153 jason at cornsyrup dot org
` (8 preceding siblings ...)
2012-04-06 13:27 ` jason at gcc dot gnu.org
@ 2012-04-06 13:29 ` jason at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu.org @ 2012-04-06 13:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52596
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> 2012-04-06 13:28:41 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 11+ messages in thread