public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19895] New: [4.0 regression] ICE on invalid class in pointer-to-member declaration
@ 2005-02-11 13:06 reichelt at gcc dot gnu dot org
  2005-02-11 13:30 ` [Bug c++/19895] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-02-11 13:06 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet causes an ICE on mainline:

=============================
template<typename> struct A
{
    int A<0>::* p;
};
=============================

bug.cc:3: error: type/value mismatch at argument 1 in template parameter list
for 'template<class> struct A'
bug.cc:3: error:   expected a type, got '0'
bug.cc:3: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in build_offset_type, at tree.c:4593
Please submit a full bug report, [etc.]

-- 
           Summary: [4.0 regression] ICE on invalid class in pointer-to-
                    member declaration
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug c++/19895] [4.0 regression] ICE on invalid class in pointer-to-member declaration
  2005-02-11 13:06 [Bug c++/19895] New: [4.0 regression] ICE on invalid class in pointer-to-member declaration reichelt at gcc dot gnu dot org
@ 2005-02-11 13:30 ` pinskia at gcc dot gnu dot org
  2005-02-14 15:20 ` nathan at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-11 13:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-11 02:53 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-02-11 02:53:38
               date|                            |
   Target Milestone|---                         |4.0.0


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


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

* [Bug c++/19895] [4.0 regression] ICE on invalid class in pointer-to-member declaration
  2005-02-11 13:06 [Bug c++/19895] New: [4.0 regression] ICE on invalid class in pointer-to-member declaration reichelt at gcc dot gnu dot org
  2005-02-11 13:30 ` [Bug c++/19895] " pinskia at gcc dot gnu dot org
@ 2005-02-14 15:20 ` nathan at gcc dot gnu dot org
  2005-02-14 18:11 ` nathan at gcc dot gnu dot org
  2005-02-14 18:45 ` cvs-commit at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: nathan at gcc dot gnu dot org @ 2005-02-14 15:20 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |nathan at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-02-11 02:53:38         |2005-02-14 09:58:54
               date|                            |


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


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

* [Bug c++/19895] [4.0 regression] ICE on invalid class in pointer-to-member declaration
  2005-02-11 13:06 [Bug c++/19895] New: [4.0 regression] ICE on invalid class in pointer-to-member declaration reichelt at gcc dot gnu dot org
  2005-02-11 13:30 ` [Bug c++/19895] " pinskia at gcc dot gnu dot org
  2005-02-14 15:20 ` nathan at gcc dot gnu dot org
@ 2005-02-14 18:11 ` nathan at gcc dot gnu dot org
  2005-02-14 18:45 ` cvs-commit at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: nathan at gcc dot gnu dot org @ 2005-02-14 18:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From nathan at gcc dot gnu dot org  2005-02-14 13:36 -------
2005-02-14  Nathan Sidwell  <nathan@codesourcery.com>

	PR c++/19895
	* decl.c (grokdeclarator): Check for error mark node in ptrmem
	construction.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug c++/19895] [4.0 regression] ICE on invalid class in pointer-to-member declaration
  2005-02-11 13:06 [Bug c++/19895] New: [4.0 regression] ICE on invalid class in pointer-to-member declaration reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-02-14 18:11 ` nathan at gcc dot gnu dot org
@ 2005-02-14 18:45 ` cvs-commit at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-02-14 18:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-02-14 13:45 -------
Subject: Bug 19895

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	nathan@gcc.gnu.org	2005-02-14 13:45:42

Modified files:
	gcc/cp         : ChangeLog decl.c pt.c 
	gcc/testsuite  : ChangeLog 
	gcc/testsuite/g++.old-deja/g++.oliva: template6.C 
Added files:
	gcc/testsuite/g++.dg/parse: ptrmem3.C 
	gcc/testsuite/g++.dg/template: explicit6.C 

Log message:
	cp:
	PR c++/19884
	* pt.c (check_explicit_specialization): Make sure namespace
	binding lookup found an overloaded function.
	(lookup_template_function): Just assert FNS is an overloaded
	function.
	
	PR c++/19895
	* decl.c (grokdeclarator): Check for error mark node in ptrmem
	construction.
	testsuite:
	PR c++/19895
	* g++.dg/parse/ptrmem3.C: New.
	
	PR c++/19884
	* g++.old-deja/g++.oliva/template6.C: Add another case.
	* g++.dg/template/explicit6.C: New.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4627&r2=1.4628
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1363&r2=1.1364
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&r1=1.976&r2=1.977
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5030&r2=1.5031
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/ptrmem3.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/explicit6.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.old-deja/g++.oliva/template6.C.diff?cvsroot=gcc&r1=1.3&r2=1.4



-- 


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


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

end of thread, other threads:[~2005-02-14 13:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-11 13:06 [Bug c++/19895] New: [4.0 regression] ICE on invalid class in pointer-to-member declaration reichelt at gcc dot gnu dot org
2005-02-11 13:30 ` [Bug c++/19895] " pinskia at gcc dot gnu dot org
2005-02-14 15:20 ` nathan at gcc dot gnu dot org
2005-02-14 18:11 ` nathan at gcc dot gnu dot org
2005-02-14 18:45 ` cvs-commit 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).