public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/40814]  New: internal compiler error: in digest_init, at cp/typeck2.c:709
@ 2009-07-21  6:41 cbellettini at gmail dot com
  2009-07-21  6:43 ` [Bug c++/40814] " cbellettini at gmail dot com
  2009-07-21  9:32 ` rguenth at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: cbellettini at gmail dot com @ 2009-07-21  6:41 UTC (permalink / raw)
  To: gcc-bugs

I stumbled upon this very unusual error. I don't know if it's worth
investigating, since I'm note even sure that this is legal code:

Anyway, GCC says:

test.cpp:8: internal compiler error: in digest_init, at cp/typeck2.c:709
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccxi24ed.out file, please attach this to
your bugreport.

---------------------------
here is the offending code:
---------------------------

#include <iostream>
using namespace std;

void paperino() { cout << __FUNCTION__ << endl; }
void pippo() { cout << __FUNCTION__ << endl; }

template<class T> void func(const T& x) {
    T other(x);
    other();
}

int main() {
    func(paperino);
    func(&pippo);
}


-- 
           Summary: internal compiler error: in digest_init, at
                    cp/typeck2.c:709
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: cbellettini at gmail dot com


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


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

* [Bug c++/40814] internal compiler error: in digest_init, at cp/typeck2.c:709
  2009-07-21  6:41 [Bug c++/40814] New: internal compiler error: in digest_init, at cp/typeck2.c:709 cbellettini at gmail dot com
@ 2009-07-21  6:43 ` cbellettini at gmail dot com
  2009-07-21  9:32 ` rguenth at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: cbellettini at gmail dot com @ 2009-07-21  6:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from cbellettini at gmail dot com  2009-07-21 06:43 -------
Created an attachment (id=18233)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18233&action=view)
preprocessor output (I guess)

compiler intermediate output


-- 


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


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

* [Bug c++/40814] internal compiler error: in digest_init, at cp/typeck2.c:709
  2009-07-21  6:41 [Bug c++/40814] New: internal compiler error: in digest_init, at cp/typeck2.c:709 cbellettini at gmail dot com
  2009-07-21  6:43 ` [Bug c++/40814] " cbellettini at gmail dot com
@ 2009-07-21  9:32 ` rguenth at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-21  9:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2009-07-21 09:31 -------
This was fixed in GCC 4.1.2.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.1.2


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


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

end of thread, other threads:[~2009-07-21  9:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-21  6:41 [Bug c++/40814] New: internal compiler error: in digest_init, at cp/typeck2.c:709 cbellettini at gmail dot com
2009-07-21  6:43 ` [Bug c++/40814] " cbellettini at gmail dot com
2009-07-21  9:32 ` 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).