public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/14691] New: ICE in write_type at cp/mangle.c when using typeof
@ 2004-03-23 12:43 jens dot maurer at gmx dot net
  2004-03-23 14:05 ` [Bug c++/14691] " bangerth at dealii dot org
  2004-07-13 19:10 ` jens dot maurer at gmx dot net
  0 siblings, 2 replies; 3+ messages in thread
From: jens dot maurer at gmx dot net @ 2004-03-23 12:43 UTC (permalink / raw)
  To: gcc-bugs

This short program fails with
gcc version 3.3
gcc version 3.5.0 20040317 (experimental)

(Idea for test program by John Spicer, Edison Design Group,
during WG21 meeting.)

The error message (with a slight variation in the line number) is:

typeof.cc: In function `int main()':
typeof.cc:11: internal compiler error: in write_type, at cp/mangle.c:1491
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


template<class T> int f(T) { };

template<class T>
typeof(f<T*>(0)) g(T x) { }

struct X { };

int main()
{
  g(X());
}

-- 
           Summary: ICE in write_type at cp/mangle.c when using typeof
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jens dot maurer at gmx dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug c++/14691] ICE in write_type at cp/mangle.c when using typeof
  2004-03-23 12:43 [Bug c++/14691] New: ICE in write_type at cp/mangle.c when using typeof jens dot maurer at gmx dot net
@ 2004-03-23 14:05 ` bangerth at dealii dot org
  2004-07-13 19:10 ` jens dot maurer at gmx dot net
  1 sibling, 0 replies; 3+ messages in thread
From: bangerth at dealii dot org @ 2004-03-23 14:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2004-03-23 14:04 -------
Confirmed. This never worked. (Sigh: one more in the list of about 
a dozen ICEs we have with typeof...) 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |rejects-valid
      Known to fail|                            |2.95.3 3.2.3 3.3.4 3.4.0
                   |                            |3.5.0
   Last reconfirmed|0000-00-00 00:00:00         |2004-03-23 14:05:00
               date|                            |


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


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

* [Bug c++/14691] ICE in write_type at cp/mangle.c when using typeof
  2004-03-23 12:43 [Bug c++/14691] New: ICE in write_type at cp/mangle.c when using typeof jens dot maurer at gmx dot net
  2004-03-23 14:05 ` [Bug c++/14691] " bangerth at dealii dot org
@ 2004-07-13 19:10 ` jens dot maurer at gmx dot net
  1 sibling, 0 replies; 3+ messages in thread
From: jens dot maurer at gmx dot net @ 2004-07-13 19:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jens dot maurer at gmx dot net  2004-07-13 19:10 -------
This appears to be a duplicate of bug 13740, sorry.


*** This bug has been marked as a duplicate of 13740 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2004-07-13 19:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-23 12:43 [Bug c++/14691] New: ICE in write_type at cp/mangle.c when using typeof jens dot maurer at gmx dot net
2004-03-23 14:05 ` [Bug c++/14691] " bangerth at dealii dot org
2004-07-13 19:10 ` jens dot maurer at gmx dot net

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