public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52596] New: internal compiler error: in lvalue_kind, at cp/tree.c:153
@ 2012-03-16  2:33 jason at cornsyrup dot org
  2012-03-16  2:50 ` [Bug c++/52596] [C++11] " pinskia at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: jason at cornsyrup dot org @ 2012-03-16  2:33 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52596

             Bug #: 52596
           Summary: internal compiler error: in lvalue_kind, at
                    cp/tree.c:153
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jason@cornsyrup.org


Created attachment 26900
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26900
bug.cc reduced from msgpack library

$ g++-4.7 -v
Using built-in specs.
COLLECT_GCC=g++-4.7
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.0~rc2-1'
--with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs
--enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.7 --enable-shared --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object
--enable-plugin --enable-objc-gc --with-arch-32=i586 --with-tune=generic
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.7.0 20120314 (prerelease) (Debian 4.7.0~rc2-1) 

$ g++-4.7 -std=c++0x bug.cc 
bug.cc: In member function ‘T* zone::allocate()’:
bug.cc:28:27: internal compiler error: in lvalue_kind, at cp/tree.c:153
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
Preprocessed source stored into /tmp/cc3EivyB.out file, please attach this to
your bugreport.


^ 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] [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 ` [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
                   ` (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 #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
                   ` (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 #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

end of thread, other threads:[~2012-04-06 13:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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
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

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