public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33839]  New: [4.3 regresssion] ICE with decltype
@ 2007-10-20 21:50 reichelt at gcc dot gnu dot org
  2007-10-20 21:50 ` [Bug c++/33839] " reichelt at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-10-20 21:50 UTC (permalink / raw)
  To: gcc-bugs

The following code snippet triggers an ICE on mainline
(I'm not sure whether this is valid or not):

===============================
template<int> struct A;

void foo()
{
  __decltype A<0>;
}
===============================

bug5.cc: In function 'void foo()':
bug5.cc:9: internal compiler error: in cp_parser_lookup_name, at
cp/parser.c:16084
Please submit a full bug report, [etc.]

The problem appeared between 2007-07-16 and 2007-08-15, presumably with
the introduction of decltype:

2007-07-27  Douglas Gregor  <doug.gregor@gmail.com>

        * typeck.c (structural_comptypes): Compare DECLTYPE_TYPE nodes.
        * cp-tree.def (DECLTYPE_TYPE): New.
        * error.c (dump_type): Dump DECLTYPE_TYPE nodes.
        ...


-- 
           Summary: [4.3 regresssion] ICE with decltype
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

end of thread, other threads:[~2007-10-26 18:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-20 21:50 [Bug c++/33839] New: [4.3 regresssion] ICE with decltype reichelt at gcc dot gnu dot org
2007-10-20 21:50 ` [Bug c++/33839] " reichelt at gcc dot gnu dot org
2007-10-20 23:36 ` bangerth at dealii dot org
2007-10-26 17:54 ` dgregor at gcc dot gnu dot org
2007-10-26 18:01 ` dgregor at gcc dot gnu dot org
2007-10-26 18:36 ` dgregor at gcc dot gnu dot org
2007-10-26 18:38 ` dgregor 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).