public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11513] New: ICE in push_template_decl_real cp/pt.c:2755, template member functions
@ 2003-07-13 16:24 drtr at dial dot pipex dot com
  2003-07-13 18:37 ` [Bug c++/11513] [3.3/3.4 Regression] " pinskia at physics dot uc dot edu
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: drtr at dial dot pipex dot com @ 2003-07-13 16:24 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: ICE in push_template_decl_real cp/pt.c:2755, template
                    member functions
           Product: gcc
           Version: 3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: drtr at dial dot pipex dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu

When parsing a member template function of a template, the compiler
crashes on variable definitions of the form 'struct foo b;'.
I think the problem is in the PROCESSING_REAL_TEMPLATE_DECL_P() macro
which gives the wrong result when within member template functions.

See the example below; when parsing struct foo b; the compiler crashes.
This may be caused by the use of PROCESSING_REAL_TEMPLATE_DECL_P() returning
1 in xref_tag() at cp/decl.c: 13297.

template <typename T>
struct bar                      // template_class_depth(bar<T>) = 1
{ 
    struct foo
    {
	int a;
    };

    template <typename U>
    int wom(U c)
    {
 	struct foo b;         // processing_template_decl = 2
    };
};


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

end of thread, other threads:[~2003-07-25 16:33 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-13 16:24 [Bug c++/11513] New: ICE in push_template_decl_real cp/pt.c:2755, template member functions drtr at dial dot pipex dot com
2003-07-13 18:37 ` [Bug c++/11513] [3.3/3.4 Regression] " pinskia at physics dot uc dot edu
2003-07-13 18:46 ` pinskia at physics dot uc dot edu
2003-07-14  3:38 ` neroden at gcc dot gnu dot org
2003-07-18 14:48 ` lerdsuwa at gcc dot gnu dot org
2003-07-19 13:05 ` lerdsuwa at gcc dot gnu dot org
2003-07-20 11:01 ` lerdsuwa at gcc dot gnu dot org
2003-07-20 11:01 ` lerdsuwa at gcc dot gnu dot org
2003-07-23 20:58 ` drtr at dial dot pipex dot com
2003-07-23 23:41 ` mmitchel at gcc dot gnu dot org
2003-07-24 11:29 ` cvs-commit at gcc dot gnu dot org
2003-07-24 11:40 ` [Bug c++/11513] [3.4 " lerdsuwa at gcc dot gnu dot org
2003-07-24 11:56 ` cvs-commit at gcc dot gnu dot org
2003-07-25  8:38 ` reichelt at gcc dot gnu dot org
2003-07-25 16:33 ` jbuck 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).