[Bug c++/23689] Malformed typedef silently ignored

2007-06-25 Thread simon_baldwin at yahoo dot com


--- Comment #8 from simon_baldwin at yahoo dot com  2007-06-25 17:26 ---
Resolved by revision 122434.


-- 

simon_baldwin at yahoo dot com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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



[Bug c++/23689] Malformed typedef silently ignored

2007-03-01 Thread ian at gcc dot gnu dot org


--- Comment #7 from ian at gcc dot gnu dot org  2007-03-01 19:13 ---
Subject: Bug 23689

Author: ian
Date: Thu Mar  1 19:13:02 2007
New Revision: 122434

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=122434
Log:
cp/:
PR c++/23689
* decl.c (check_tag_decl): Added new warning for typedef ignored
when it precedes an otherwise valid non-typedef declaration.
testsuite/:
PR c++/23689
* warn/ignored_typedef.C: New.
* init/ctor8.C: Added dg-warning to consume ignored typedef
warning. 
* template/typedef2.C: Ditto.  Moved dg-error onto its own line
and added an explicit line number.

Added:
trunk/gcc/testsuite/g++.dg/warn/ignored_typedef.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/init/ctor8.C
trunk/gcc/testsuite/g++.dg/template/typedef2.C


-- 


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



[Bug c++/23689] Malformed typedef silently ignored

2007-02-16 Thread patchapp at dberlin dot org


--- Comment #6 from patchapp at dberlin dot org  2007-02-16 17:17 ---
Subject: Bug number PR c++/23689

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-02/msg00114.html


-- 


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



[Bug c++/23689] Malformed typedef silently ignored

2007-02-09 Thread manu at gcc dot gnu dot org


--- Comment #5 from manu at gcc dot gnu dot org  2007-02-09 12:44 ---
Someone posted a patch. It is not in the patch queue, so I mention it here
before it gets lost:
http://gcc.gnu.org/ml/gcc-patches/2007-02/msg00114.html


-- 


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



[Bug c++/23689] Malformed typedef silently ignored

2006-03-04 Thread pinskia at gcc dot gnu dot org


--- Comment #4 from pinskia at gcc dot gnu dot org  2006-03-05 03:19 ---
I have also seen this while reducing sources using delta.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||pinskia at gcc dot gnu dot
   ||org
   Severity|enhancement |minor
   Last reconfirmed|2005-09-02 19:19:17 |2006-03-05 03:19:00
   date||


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



[Bug c++/23689] Malformed typedef silently ignored

2005-09-02 Thread falk at debian dot org

--- Additional Comments From falk at debian dot org  2005-09-02 13:02 
---
Works for me with any gcc version:

[EMAIL PROTECTED]:/tmp% gcc-3.4 -c test.c 
test.c:1: warning: useless keyword or type name in empty declaration
test.c:2: warning: useless keyword or type name in empty declaration

What is the exact version you are using and the exact flags you are passing?


-- 
   What|Removed |Added

 Status|UNCONFIRMED |WAITING


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


[Bug c++/23689] Malformed typedef silently ignored

2005-09-02 Thread gdr at integrable-solutions dot net

--- Additional Comments From gdr at integrable-solutions dot net  
2005-09-02 13:25 ---
Subject: Re:  Malformed typedef silently ignored

falk at debian dot org [EMAIL PROTECTED] writes:

| Works for me with any gcc version:
| 
| [EMAIL PROTECTED]:/tmp% gcc-3.4 -c test.c 
| test.c:1: warning: useless keyword or type name in empty declaration
| test.c:2: warning: useless keyword or type name in empty declaration
| 
| What is the exact version you are using and the exact flags you are passing?

The bug was reported against C++; I believe you're testing with a C
compiler, instead of C++.

-- Gaby


-- 


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


Re: [Bug c++/23689] Malformed typedef silently ignored

2005-09-02 Thread Gabriel Dos Reis
falk at debian dot org [EMAIL PROTECTED] writes:

| Works for me with any gcc version:
| 
| [EMAIL PROTECTED]:/tmp% gcc-3.4 -c test.c 
| test.c:1: warning: useless keyword or type name in empty declaration
| test.c:2: warning: useless keyword or type name in empty declaration
| 
| What is the exact version you are using and the exact flags you are passing?

The bug was reported against C++; I believe you're testing with a C
compiler, instead of C++.

-- Gaby


[Bug c++/23689] Malformed typedef silently ignored

2005-09-02 Thread simon_baldwin at yahoo dot com

--- Additional Comments From simon_baldwin at yahoo dot com  2005-09-02 
19:12 ---
The problem's restricted to the C++ front end only, and is common across
multiple releases and at the highest warning settings:

$ cat e.cc
typedef enum { ZERO };   // error, malformed typedef, missing identifier
typedef struct dummy {}; // ditto

$ g++-4.1 -Wall -W -pedantic -c e.cc
$ g++-4.0.1-k8 -Wall -W -pedantic -c e.cc
$ g++-3.4.1 -Wall -W -pedantic -c e.cc
$ g++-3.2.2 -Wall -W -pedantic -c e.cc
$ g++-2.95 -Wall -W -pedantic -c e.c


-- 


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


[Bug c++/23689] Malformed typedef silently ignored

2005-09-02 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

 Status|WAITING |NEW
 Ever Confirmed||1
   Last reconfirmed|-00-00 00:00:00 |2005-09-02 19:19:17
   date||


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