public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/15862] New: 'enum yn' fails
@ 2004-06-07 22:04 pepster at users dot sourceforge dot net
  2004-06-07 22:23 ` [Bug c++/15862] [3.4/4.5 Regression] " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: pepster at users dot sourceforge dot net @ 2004-06-07 22:04 UTC (permalink / raw)
  To: gcc-bugs

This short code snippet fails to compile. Worked in 3.3.
As far as I can tell, yn is not a reserved word.

--------------------
enum yn {Y, N};
enum yn x = Y;
--------------------

g++ -v -c x.cc
Reading specs from /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/specs
Configured with: ../gcc-3.4.0/configure --enable-languafes=c,c++
Thread model: posix
gcc version 3.4.0
 /usr/local/libexec/gcc/i686-pc-linux-gnu/3.4.0/cc1plus -quiet -v -D_GNU_SOURCE
x.cc -quiet -dumpbase x.cc -mtune=pentiumpro -auxbase x -version -o /tmp/cccljUxr.s
ignoring nonexistent directory "NONE/include"
ignoring nonexistent directory
"/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0
 /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/i686-pc-linux-gnu
 /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/backward
 /usr/local/include
 /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/include
 /usr/include
End of search list.
GNU C++ version 3.4.0 (i686-pc-linux-gnu)
	compiled by GNU C version 3.4.0.
GGC heuristics: --param ggc-min-expand=45 --param ggc-min-heapsize=29906
x.cc:2: error: use of enum `yn' without previous declaration
x.cc:2: error: invalid type in declaration before '=' token


$ uname -a
Linux yoda 2.4.18-18.8.0 #1 Wed Nov 13 22:52:09 EST 2002 i686 athlon i386 GNU/Linux

-- 
           Summary: 'enum yn' fails
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pepster at users dot sourceforge dot net
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug c++/15862] [3.4/4.5 Regression] 'enum yn' fails
  2004-06-07 22:04 [Bug c++/15862] New: 'enum yn' fails pepster at users dot sourceforge dot net
@ 2004-06-07 22:23 ` pinskia at gcc dot gnu dot org
  2004-06-07 22:33 ` bangerth at dealii dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-07 22:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-07 22:23 -------
Confirmed, a regression.

Mark I feel that this is major parser bug which should be fixed for 3.4.1.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mmitchel at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |rejects-valid
      Known to fail|                            |3.4.0 3.5.0
      Known to work|                            |3.3.3
   Last reconfirmed|0000-00-00 00:00:00         |2004-06-07 22:23:05
               date|                            |
            Summary|'enum yn' fails             |[3.4/4.5 Regression] 'enum
                   |                            |yn' fails
   Target Milestone|---                         |3.4.2


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


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

* [Bug c++/15862] [3.4/4.5 Regression] 'enum yn' fails
  2004-06-07 22:04 [Bug c++/15862] New: 'enum yn' fails pepster at users dot sourceforge dot net
  2004-06-07 22:23 ` [Bug c++/15862] [3.4/4.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-06-07 22:33 ` bangerth at dealii dot org
  2004-06-07 22:38 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bangerth at dealii dot org @ 2004-06-07 22:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2004-06-07 22:33 -------
No, yn is one of the Bessel function functions in C99 (do 'man yn'). 
The is a duplicate of another bug involving j1, which I'm going to look 
up next. 
 
W. 

-- 


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


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

* [Bug c++/15862] [3.4/4.5 Regression] 'enum yn' fails
  2004-06-07 22:04 [Bug c++/15862] New: 'enum yn' fails pepster at users dot sourceforge dot net
  2004-06-07 22:23 ` [Bug c++/15862] [3.4/4.5 Regression] " pinskia at gcc dot gnu dot org
  2004-06-07 22:33 ` bangerth at dealii dot org
@ 2004-06-07 22:38 ` pinskia at gcc dot gnu dot org
  2004-06-07 22:44 ` bangerth at dealii dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-07 22:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-07 22:38 -------
That would be PR 14432 but since my 3.5.0 build was from last night this is not fixed.

-- 


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


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

* [Bug c++/15862] [3.4/4.5 Regression] 'enum yn' fails
  2004-06-07 22:04 [Bug c++/15862] New: 'enum yn' fails pepster at users dot sourceforge dot net
                   ` (2 preceding siblings ...)
  2004-06-07 22:38 ` pinskia at gcc dot gnu dot org
@ 2004-06-07 22:44 ` bangerth at dealii dot org
  2004-06-09 16:33 ` mmitchel at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bangerth at dealii dot org @ 2004-06-07 22:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2004-06-07 22:44 -------
Right, I found PR 14432 as well. However, my 3.4 build compiles that one 
correctly, while it still fails on this PR. Mark, do you have an idea what 
is going on? This just seems too close to 14432 to be a coincidence... 
 
W. 

-- 


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


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

* [Bug c++/15862] [3.4/4.5 Regression] 'enum yn' fails
  2004-06-07 22:04 [Bug c++/15862] New: 'enum yn' fails pepster at users dot sourceforge dot net
                   ` (3 preceding siblings ...)
  2004-06-07 22:44 ` bangerth at dealii dot org
@ 2004-06-09 16:33 ` mmitchel at gcc dot gnu dot org
  2004-06-10 14:42 ` mmitchel at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-06-09 16:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-06-09 16:33 -------
Yes, we need to fix this for 3.4.1.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.2                       |3.4.1


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


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

* [Bug c++/15862] [3.4/4.5 Regression] 'enum yn' fails
  2004-06-07 22:04 [Bug c++/15862] New: 'enum yn' fails pepster at users dot sourceforge dot net
                   ` (4 preceding siblings ...)
  2004-06-09 16:33 ` mmitchel at gcc dot gnu dot org
@ 2004-06-10 14:42 ` mmitchel at gcc dot gnu dot org
  2004-06-11 18:15 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-06-10 14:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-06-10 14:42 -------
Working on a fix.

-- 
           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=15862


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

* [Bug c++/15862] [3.4/4.5 Regression] 'enum yn' fails
  2004-06-07 22:04 [Bug c++/15862] New: 'enum yn' fails pepster at users dot sourceforge dot net
                   ` (5 preceding siblings ...)
  2004-06-10 14:42 ` mmitchel at gcc dot gnu dot org
@ 2004-06-11 18:15 ` cvs-commit at gcc dot gnu dot org
  2004-06-11 18:18 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-11 18:15 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-06-11 18:14 -------
Subject: Bug 15862

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	mmitchel@gcc.gnu.org	2004-06-11 18:14:52

Modified files:
	gcc/cp         : ChangeLog name-lookup.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/parse: enum1.C 

Log message:
	PR c++/15862
	* name-lookup.c (unqualified_namespace_lookup): Do not ignore type
	bindings for undeclared built-ins.
	
	PR c++/15862
	* g++.dg/parse/enum1.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4092&r2=1.4093
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/name-lookup.c.diff?cvsroot=gcc&r1=1.57&r2=1.58
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3842&r2=1.3843
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/enum1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug c++/15862] [3.4/4.5 Regression] 'enum yn' fails
  2004-06-07 22:04 [Bug c++/15862] New: 'enum yn' fails pepster at users dot sourceforge dot net
                   ` (6 preceding siblings ...)
  2004-06-11 18:15 ` cvs-commit at gcc dot gnu dot org
@ 2004-06-11 18:18 ` cvs-commit at gcc dot gnu dot org
  2004-06-11 18:20 ` mmitchel at gcc dot gnu dot org
  2005-05-22 20:44 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-11 18:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-06-11 18:18 -------
Subject: Bug 15862

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	mmitchel@gcc.gnu.org	2004-06-11 18:18:46

Modified files:
	gcc/testsuite  : ChangeLog 
	gcc/cp         : ChangeLog name-lookup.c 
Added files:
	gcc/testsuite/g++.dg/parse: enum1.C 

Log message:
	PR c++/15862
	* name-lookup.c (unqualified_namespace_lookup): Do not ignore type
	bindings for undeclared built-ins.
	
	PR c++/15862
	* g++.dg/parse/enum1.C: New test.

Patches:
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.204&r2=1.3389.2.205
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.121&r2=1.3892.2.122
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/name-lookup.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.34.2.14&r2=1.34.2.15
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/enum1.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=15862


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

* [Bug c++/15862] [3.4/4.5 Regression] 'enum yn' fails
  2004-06-07 22:04 [Bug c++/15862] New: 'enum yn' fails pepster at users dot sourceforge dot net
                   ` (7 preceding siblings ...)
  2004-06-11 18:18 ` cvs-commit at gcc dot gnu dot org
@ 2004-06-11 18:20 ` mmitchel at gcc dot gnu dot org
  2005-05-22 20:44 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-06-11 18:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-06-11 18:20 -------
Fixed in GCC 3.4.1.

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


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


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

* [Bug c++/15862] [3.4/4.5 Regression] 'enum yn' fails
  2004-06-07 22:04 [Bug c++/15862] New: 'enum yn' fails pepster at users dot sourceforge dot net
                   ` (8 preceding siblings ...)
  2004-06-11 18:20 ` mmitchel at gcc dot gnu dot org
@ 2005-05-22 20:44 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-22 20:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-22 20:43 -------
*** Bug 21713 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |igodard at pacbell dot net


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


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

end of thread, other threads:[~2005-05-22 20:44 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-07 22:04 [Bug c++/15862] New: 'enum yn' fails pepster at users dot sourceforge dot net
2004-06-07 22:23 ` [Bug c++/15862] [3.4/4.5 Regression] " pinskia at gcc dot gnu dot org
2004-06-07 22:33 ` bangerth at dealii dot org
2004-06-07 22:38 ` pinskia at gcc dot gnu dot org
2004-06-07 22:44 ` bangerth at dealii dot org
2004-06-09 16:33 ` mmitchel at gcc dot gnu dot org
2004-06-10 14:42 ` mmitchel at gcc dot gnu dot org
2004-06-11 18:15 ` cvs-commit at gcc dot gnu dot org
2004-06-11 18:18 ` cvs-commit at gcc dot gnu dot org
2004-06-11 18:20 ` mmitchel at gcc dot gnu dot org
2005-05-22 20:44 ` pinskia 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).