public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18285] New: [4.0 regression] multiple types in typedef not rejected
@ 2004-11-03 10:22 reichelt at gcc dot gnu dot org
  2004-11-03 12:18 ` [Bug c++/18285] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-11-03 10:22 UTC (permalink / raw)
  To: gcc-bugs

The following invalid line of code is accepted by mainline's C++ frontend:

======================================
typedef void int char void double X;
======================================

The regression was introduced in June:
: Search converges between 2004-06-24-trunk (#471) and 2004-06-26-trunk (#472).

-- 
           Summary: [4.0 regression] multiple types in typedef not rejected
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid, 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=18285


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

* [Bug c++/18285] [4.0 regression] multiple types in typedef not rejected
  2004-11-03 10:22 [Bug c++/18285] New: [4.0 regression] multiple types in typedef not rejected reichelt at gcc dot gnu dot org
@ 2004-11-03 12:18 ` pinskia at gcc dot gnu dot org
  2004-11-04 12:08 ` reichelt at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-03 12:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-03 12:18 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-11-03 12:18:14
               date|                            |
   Target Milestone|---                         |4.0.0


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


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

* [Bug c++/18285] [4.0 regression] multiple types in typedef not rejected
  2004-11-03 10:22 [Bug c++/18285] New: [4.0 regression] multiple types in typedef not rejected reichelt at gcc dot gnu dot org
  2004-11-03 12:18 ` [Bug c++/18285] " pinskia at gcc dot gnu dot org
@ 2004-11-04 12:08 ` reichelt at gcc dot gnu dot org
  2004-11-04 16:21 ` mmitchel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-11-04 12:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-11-04 12:08 -------
Mark, the regression was introduced with your patch
http://gcc.gnu.org/ml/gcc-cvs/2004-06/msg00988.html


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mmitchel at gcc dot gnu dot
                   |                            |org


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


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

* [Bug c++/18285] [4.0 regression] multiple types in typedef not rejected
  2004-11-03 10:22 [Bug c++/18285] New: [4.0 regression] multiple types in typedef not rejected reichelt at gcc dot gnu dot org
  2004-11-03 12:18 ` [Bug c++/18285] " pinskia at gcc dot gnu dot org
  2004-11-04 12:08 ` reichelt at gcc dot gnu dot org
@ 2004-11-04 16:21 ` mmitchel at gcc dot gnu dot org
  2004-11-24 23:19 ` cvs-commit at gcc dot gnu dot org
  2004-11-24 23:24 ` mmitchel at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-11-04 16:21 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |mark at codesourcery dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


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

* [Bug c++/18285] [4.0 regression] multiple types in typedef not rejected
  2004-11-03 10:22 [Bug c++/18285] New: [4.0 regression] multiple types in typedef not rejected reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-11-04 16:21 ` mmitchel at gcc dot gnu dot org
@ 2004-11-24 23:19 ` cvs-commit at gcc dot gnu dot org
  2004-11-24 23:24 ` 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-11-24 23:19 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-11-24 23:19 -------
Subject: Bug 18285

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	mmitchel@gcc.gnu.org	2004-11-24 23:18:56

Modified files:
	gcc/cp         : ChangeLog name-lookup.c parser.c 
	gcc/testsuite  : ChangeLog 
	gcc/testsuite/g++.dg/template: typedef1.C 
	gcc/testsuite/g++.old-deja/g++.other: typedef7.C 
Added files:
	gcc/testsuite/g++.dg/parse: typedef7.C 
Removed files:
	gcc/testsuite/g++.dg/tc1: dr56.C 

Log message:
	PR c++/17473
	* name-lookup.c (supplement_binding): Do not allow typedefs to be
	redefined in class scope.
	
	PR c++/18285
	* parser.c (cp_parser_set_decl_type_spec): Do not try to allow
	redefinitions of builtin types other that "bool" or "wchar_t".
	
	PR c++/17473
	* g++.dg/tc1/dr56.C: Remove.
	* g++.dg/template/typedef1.C: Add dg-error markers.
	* g++.old-deja/g++.other/typedef7.C: Likewise.
	
	PR c++/18285
	* g++.dg/parse/typedef7.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4494&r2=1.4495
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/name-lookup.c.diff?cvsroot=gcc&r1=1.92&r2=1.93
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.280&r2=1.281
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4644&r2=1.4645
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/tc1/dr56.C.diff?cvsroot=gcc&r1=1.2&r2=NONE
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/typedef1.C.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.old-deja/g++.other/typedef7.C.diff?cvsroot=gcc&r1=1.3&r2=1.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/typedef7.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug c++/18285] [4.0 regression] multiple types in typedef not rejected
  2004-11-03 10:22 [Bug c++/18285] New: [4.0 regression] multiple types in typedef not rejected reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-11-24 23:19 ` cvs-commit at gcc dot gnu dot org
@ 2004-11-24 23:24 ` mmitchel at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-11-24 23:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-11-24 23:24 -------
Fixed in GCC 4.0.

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


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


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

end of thread, other threads:[~2004-11-24 23:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-03 10:22 [Bug c++/18285] New: [4.0 regression] multiple types in typedef not rejected reichelt at gcc dot gnu dot org
2004-11-03 12:18 ` [Bug c++/18285] " pinskia at gcc dot gnu dot org
2004-11-04 12:08 ` reichelt at gcc dot gnu dot org
2004-11-04 16:21 ` mmitchel at gcc dot gnu dot org
2004-11-24 23:19 ` cvs-commit at gcc dot gnu dot org
2004-11-24 23:24 ` 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).