public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13950] [3.4/3.5 Regression] ICE on lookup of dependent base name
  2004-01-31 20:14 [Bug c++/13950] New: [3.4/3.5 Regression] ICE on lookup of dependent base name giovannibajo at libero dot it
@ 2004-01-31 20:14 ` giovannibajo at libero dot it
  2004-01-31 20:20 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: giovannibajo at libero dot it @ 2004-01-31 20:14 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |3.4.0 3.5.0


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


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

* [Bug c++/13950] New: [3.4/3.5 Regression] ICE on lookup of dependent base name
@ 2004-01-31 20:14 giovannibajo at libero dot it
  2004-01-31 20:14 ` [Bug c++/13950] " giovannibajo at libero dot it
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: giovannibajo at libero dot it @ 2004-01-31 20:14 UTC (permalink / raw)
  To: gcc-bugs

-----------------------------------------------------
template <class T> struct Base {};
template <class T> struct Derived: public Base<T> {
  typename Derived::template Base<double>* p1;
};

template struct Derived<void>;
-----------------------------------------------------
test.cc:3: error: no class template named `Base' in `struct Derived<T>'
test.cc:3: internal compiler error: tree check: expected class 't', have 'x' 
(error_mark) in cp_parser_class_name, at cp/parser.c:11594

The problem appears to be that make_typename_type does perform a name lookup 
within the currently open class, while cp_parser_template_name does not. I 
think they both have to agree on what to do. 

Besides, the lookup should not fail (see DR176, and g++.dg/tc1/dr176.C which I 
will soon submit). So this is both a rejects-valid and an ice-on-valid.

-- 
           Summary: [3.4/3.5 Regression] ICE on lookup of dependent base
                    name
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, rejects-valid, error-recovery
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: giovannibajo at libero dot it
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug c++/13950] [3.4/3.5 Regression] ICE on lookup of dependent base name
  2004-01-31 20:14 [Bug c++/13950] New: [3.4/3.5 Regression] ICE on lookup of dependent base name giovannibajo at libero dot it
  2004-01-31 20:14 ` [Bug c++/13950] " giovannibajo at libero dot it
@ 2004-01-31 20:20 ` pinskia at gcc dot gnu dot org
  2004-02-03 20:00 ` [Bug c++/13950] [3.4/3.5 Regression] [DR176] " cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-31 20:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-31 20:20 -------
Confirmed, the ICE is a regression from 3.3.3

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-01-31 20:20:39
               date|                            |
   Target Milestone|---                         |3.4.0


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


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

* [Bug c++/13950] [3.4/3.5 Regression] [DR176] ICE on lookup of dependent base name
  2004-01-31 20:14 [Bug c++/13950] New: [3.4/3.5 Regression] ICE on lookup of dependent base name giovannibajo at libero dot it
  2004-01-31 20:14 ` [Bug c++/13950] " giovannibajo at libero dot it
  2004-01-31 20:20 ` pinskia at gcc dot gnu dot org
@ 2004-02-03 20:00 ` cvs-commit at gcc dot gnu dot org
  2004-02-03 20:04 ` cvs-commit at gcc dot gnu dot org
  2004-02-03 20:07 ` [Bug c++/13950] " mmitchel at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-02-03 20:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-02-03 20:00 -------
Subject: Bug 13950

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	mmitchel@gcc.gnu.org	2004-02-03 20:00:47

Modified files:
	gcc/testsuite  : ChangeLog 
	gcc/cp         : ChangeLog parser.c 
Added files:
	gcc/testsuite/g++.dg/template: lookup4.C 
	gcc/testsuite/g++.dg/parse: error14.C 

Log message:
	PR c++/13950
	* parser.c (cp_parser_class_name): Robustify.
	
	PR c++/13970
	* parser.c (cp_parser_cache_group): Do not consume the EOF token.
	
	PR c++/13950
	* g++.dg/template/lookup4.C: New test.
	
	PR c++/13970
	* g++.dg/parse/error14.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3459&r2=1.3460
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3927&r2=1.3928
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.166&r2=1.167
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/lookup4.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/error14.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug c++/13950] [3.4/3.5 Regression] [DR176] ICE on lookup of dependent base name
  2004-01-31 20:14 [Bug c++/13950] New: [3.4/3.5 Regression] ICE on lookup of dependent base name giovannibajo at libero dot it
                   ` (2 preceding siblings ...)
  2004-02-03 20:00 ` [Bug c++/13950] [3.4/3.5 Regression] [DR176] " cvs-commit at gcc dot gnu dot org
@ 2004-02-03 20:04 ` cvs-commit at gcc dot gnu dot org
  2004-02-03 20:07 ` [Bug c++/13950] " mmitchel at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-02-03 20:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-02-03 20:04 -------
Subject: Bug 13950

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	mmitchel@gcc.gnu.org	2004-02-03 20:04:36

Modified files:
	gcc/cp         : ChangeLog parser.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/parse: error14.C 
	gcc/testsuite/g++.dg/template: lookup4.C 

Log message:
	PR c++/13950
	* parser.c (cp_parser_class_name): Robustify.
	
	PR c++/13970
	* parser.c (cp_parser_cache_group): Do not consume the EOF token.
	
	PR c++/13950
	* g++.dg/template/lookup4.C: New test.
	
	PR c++/13970
	* g++.dg/parse/error14.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3892.2.31&r2=1.3892.2.32
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.157.2.8&r2=1.157.2.9
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.47&r2=1.3389.2.48
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/error14.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/lookup4.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1



-- 


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


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

* [Bug c++/13950] [DR176] ICE on lookup of dependent base name
  2004-01-31 20:14 [Bug c++/13950] New: [3.4/3.5 Regression] ICE on lookup of dependent base name giovannibajo at libero dot it
                   ` (3 preceding siblings ...)
  2004-02-03 20:04 ` cvs-commit at gcc dot gnu dot org
@ 2004-02-03 20:07 ` mmitchel at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-02-03 20:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-02-03 20:07 -------
The ICE is fixed in GCC 3.4.  

Therefore, this is no longer a regression, and I have removed the target milestone.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[3.4/3.5 Regression] [DR176]|[DR176] ICE on lookup of
                   |ICE on lookup of dependent  |dependent base name
                   |base name                   |
   Target Milestone|3.4.0                       |---


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


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

end of thread, other threads:[~2004-02-03 20:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-31 20:14 [Bug c++/13950] New: [3.4/3.5 Regression] ICE on lookup of dependent base name giovannibajo at libero dot it
2004-01-31 20:14 ` [Bug c++/13950] " giovannibajo at libero dot it
2004-01-31 20:20 ` pinskia at gcc dot gnu dot org
2004-02-03 20:00 ` [Bug c++/13950] [3.4/3.5 Regression] [DR176] " cvs-commit at gcc dot gnu dot org
2004-02-03 20:04 ` cvs-commit at gcc dot gnu dot org
2004-02-03 20:07 ` [Bug c++/13950] " mmitchel 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).