public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/31899]  New: [4.2/4.3 regression] -g and using declaration causing ICE in reference_to_unused
@ 2007-05-11 13:09 zak at transversal dot com
  2007-05-11 17:53 ` [Bug c++/31899] " fang at csl dot cornell dot edu
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: zak at transversal dot com @ 2007-05-11 13:09 UTC (permalink / raw)
  To: gcc-bugs

The following code, compiled with -g, causes an ICE on 4.2.0 RC3 (20070501) and
on my most recent 4.3.0 snapshot build (20070427):

---------------------
namespace NS {
  int x = 0;
  int &ref = x;
}

using NS::ref;
---------------------

test/ice.cc:6: internal compiler error: in reference_to_unused, at
dwarf2out.c:10128


This compiles cleanly with both 4.1.2 and 4.2.0 RC1 (20070316), suggesting that
this was exposed by a fairly recent patch.


Note that, in particular, this impacts code using Boost.Lambda in the following
style:

#include <boost/lambda/lambda.hpp>
using boost::lambda::_1;
...


-- 
           Summary: [4.2/4.3 regression] -g and using declaration causing
                    ICE in reference_to_unused
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zak at transversal dot com
 GCC build triplet: x86_64_pc_linux_gnu
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64_pc_linux_gnu


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


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

end of thread, other threads:[~2008-02-27 13:24 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-11 13:09 [Bug c++/31899] New: [4.2/4.3 regression] -g and using declaration causing ICE in reference_to_unused zak at transversal dot com
2007-05-11 17:53 ` [Bug c++/31899] " fang at csl dot cornell dot edu
2007-05-11 17:58 ` fang at csl dot cornell dot edu
2007-05-12 13:50 ` [Bug debug/31899] " pinskia at gcc dot gnu dot org
2007-05-14 21:29 ` mmitchel at gcc dot gnu dot org
2007-07-04  3:06 ` mmitchel at gcc dot gnu dot org
2007-07-20  3:52 ` mmitchel at gcc dot gnu dot org
2007-07-27 20:54 ` dougkwan at google dot com
2007-08-08 18:59 ` pinskia at gcc dot gnu dot org
2007-10-02 16:22 ` pinskia at gcc dot gnu dot org
2007-10-02 16:22 ` pinskia at gcc dot gnu dot org
2007-10-02 16:55 ` rguenth at gcc dot gnu dot org
2007-10-02 17:06 ` rguenth at gcc dot gnu dot org
2007-10-02 17:12 ` rguenth at gcc dot gnu dot org
2007-10-03 10:02 ` rguenth at gcc dot gnu dot org
2007-10-03 10:04 ` [Bug debug/31899] [4.2 Regression] " rguenth at gcc dot gnu dot org
2007-10-05 12:14 ` rguenth at gcc dot gnu dot org
2007-10-10  9:29 ` rguenth at gcc dot gnu dot org
2007-10-10  9:29 ` rguenth at gcc dot gnu dot org
2008-02-27 13:24 ` rguenth at gcc dot gnu dot 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).