public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12167] New: ICE on usage of NAN as default argument of class member function
@ 2003-09-04 14:09 stefaandr at hotmail dot com
  2003-09-04 14:09 ` [Bug c++/12167] " stefaandr at hotmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: stefaandr at hotmail dot com @ 2003-09-04 14:09 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: ICE on usage of NAN as default argument of class member
                    function
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: stefaandr at hotmail dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu

Code:
#include <math.h>
class A { void report(double d = NAN); };

Reading specs from /esat/firenze/install/lib/gcc/i686-pc-linux-gnu/3.4/specs
Configured with: '../../gcc/3.4/configure' '--prefix=/esat/firenze/install
'--program-suffix=-3.4 '--enable-languages=c,c++
Thread model: posix
gcc version 3.4 20030904 (experimental)
 /esat/firenze/install/libexec/gcc/i686-pc-linux-gnu/3.4/cc1plus -quiet -v
-D_GNU_SOURCE test51.cpp -quiet -dumpbase test51.cpp -mtune=pentiumpro
-auxbase-strip test51.o -version -o /tmp/cchrTZYt.s
ignoring nonexistent directory
"/esat/firenze/install/lib/gcc/i686-pc-linux-gnu/3.4/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /esat/firenze/install/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4
 /esat/firenze/install/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4/i686-pc-linux-gnu
 /esat/firenze/install/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4/backward
 /usr/local/include
 /esat/firenze/install/include
 /esat/firenze/install/lib/gcc/i686-pc-linux-gnu/3.4/include
 /usr/include
End of search list.
GNU C++ version 3.4 20030904 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 3.3.1.
GGC heuristics: --param ggc-min-expand=81 --param ggc-min-heapsize=96541
g++-3.4: Internal error: Segmentation fault (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


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

* [Bug c++/12167] ICE on usage of NAN as default argument of class member function
  2003-09-04 14:09 [Bug c++/12167] New: ICE on usage of NAN as default argument of class member function stefaandr at hotmail dot com
@ 2003-09-04 14:09 ` stefaandr at hotmail dot com
  2003-09-04 14:48 ` [Bug c++/12167] [3.4 Regression]ICE on default argument of class member function if non-simple pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: stefaandr at hotmail dot com @ 2003-09-04 14:09 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From stefaandr at hotmail dot com  2003-09-04 14:09 -------
Created an attachment (id=4701)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4701&action=view)
--save-temps - output


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

* [Bug c++/12167] [3.4 Regression]ICE on default argument of class member function if non-simple
  2003-09-04 14:09 [Bug c++/12167] New: ICE on usage of NAN as default argument of class member function stefaandr at hotmail dot com
  2003-09-04 14:09 ` [Bug c++/12167] " stefaandr at hotmail dot com
@ 2003-09-04 14:48 ` pinskia at gcc dot gnu dot org
  2003-09-04 14:49 ` [Bug c++/12167] [3.4 Regression] ICE " bangerth at dealii dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-04 14:48 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-09-04 14:48:20
               date|                            |
            Summary|ICE on usage of NAN as      |[3.4 Regression]ICE on
                   |default argument of class   |default argument of class
                   |member function             |member function if non-
                   |                            |simple
   Target Milestone|---                         |3.4


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-09-04 14:48 -------
Reduced source:
class A { void report(double d = (__extension__ ((union { unsigned __l 
__attribute__((__mode__(__SI__))); float __d; }) { __l: 0x7fc00000UL }).__d)); };

>From Phil's regression hunter: Search converges between 2003-01-06-trunk (#186) and 2003-
01-07-trunk (#187).


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

* [Bug c++/12167] [3.4 Regression] ICE on default argument of class member function if non-simple
  2003-09-04 14:09 [Bug c++/12167] New: ICE on usage of NAN as default argument of class member function stefaandr at hotmail dot com
  2003-09-04 14:09 ` [Bug c++/12167] " stefaandr at hotmail dot com
  2003-09-04 14:48 ` [Bug c++/12167] [3.4 Regression]ICE on default argument of class member function if non-simple pinskia at gcc dot gnu dot org
@ 2003-09-04 14:49 ` bangerth at dealii dot org
  2003-09-05 16:31 ` nathan at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bangerth at dealii dot org @ 2003-09-04 14:49 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


bangerth at dealii dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[3.4 Regression]ICE on      |[3.4 Regression] ICE on
                   |default argument of class   |default argument of class
                   |member function if non-     |member function if non-
                   |simple                      |simple


------- Additional Comments From bangerth at dealii dot org  2003-09-04 14:49 -------
This seems to go into an infinite loop for me:   
-------------------------------------------------   
class A {   
    void report(double d   
		= (__extension__ ((union { unsigned __l __attribute__((__mode__(__SI__)));   
		    float __d; }) { __l: 0x7fc00000UL }).__d));   
};   
-------------------------------------------------   
Surprisingly, if report() is a global function, then the code compiles fine.   
   
Certainly qualifies as a mainline regression.   
   
W.


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

* [Bug c++/12167] [3.4 Regression] ICE on default argument of class member function if non-simple
  2003-09-04 14:09 [Bug c++/12167] New: ICE on usage of NAN as default argument of class member function stefaandr at hotmail dot com
                   ` (2 preceding siblings ...)
  2003-09-04 14:49 ` [Bug c++/12167] [3.4 Regression] ICE " bangerth at dealii dot org
@ 2003-09-05 16:31 ` nathan at gcc dot gnu dot org
  2003-09-06 11:29 ` cvs-commit at gcc dot gnu dot org
  2003-09-06 11:29 ` nathan at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: nathan at gcc dot gnu dot org @ 2003-09-05 16:31 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


nathan at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |nathan at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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

* [Bug c++/12167] [3.4 Regression] ICE on default argument of class member function if non-simple
  2003-09-04 14:09 [Bug c++/12167] New: ICE on usage of NAN as default argument of class member function stefaandr at hotmail dot com
                   ` (3 preceding siblings ...)
  2003-09-05 16:31 ` nathan at gcc dot gnu dot org
@ 2003-09-06 11:29 ` cvs-commit at gcc dot gnu dot org
  2003-09-06 11:29 ` nathan at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-09-06 11:29 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-09-06 11:29 -------
Subject: Bug 12167

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	nathan@gcc.gnu.org	2003-09-06 11:29:18

Modified files:
	gcc/cp         : ChangeLog parser.c 
	gcc/testsuite  : ChangeLog 
	gcc/testsuite/g++.dg/template: non-type-template-argument-1.C 
Added files:
	gcc/testsuite/g++.dg/parse: defarg5.C 

Log message:
	cp:
	PR c++/12167
	* parser.c (cp_parser_late_parsing_default_args): Push & pop the
	unparsed functions queue.
	testsuite:
	PR c++/12167
	* g++.dg/parse/defarg5.C: New test.
	
	* g++.dg/template/non-type-template-argument-1.C: Tweak expected error.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3649&r2=1.3650
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.108&r2=1.109
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3027&r2=1.3028
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/defarg5.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/non-type-template-argument-1.C.diff?cvsroot=gcc&r1=1.1&r2=1.2


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

* [Bug c++/12167] [3.4 Regression] ICE on default argument of class member function if non-simple
  2003-09-04 14:09 [Bug c++/12167] New: ICE on usage of NAN as default argument of class member function stefaandr at hotmail dot com
                   ` (4 preceding siblings ...)
  2003-09-06 11:29 ` cvs-commit at gcc dot gnu dot org
@ 2003-09-06 11:29 ` nathan at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: nathan at gcc dot gnu dot org @ 2003-09-06 11:29 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


nathan at gcc dot gnu dot org changed:

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


------- Additional Comments From nathan at gcc dot gnu dot org  2003-09-06 11:29 -------
2003-09-06  Nathan Sidwell  <nathan@codesourcery.com>

	PR c++/12167
	* parser.c (cp_parser_late_parsing_default_args): Push & pop the
	unparsed functions queue.


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

end of thread, other threads:[~2003-09-06 11:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-04 14:09 [Bug c++/12167] New: ICE on usage of NAN as default argument of class member function stefaandr at hotmail dot com
2003-09-04 14:09 ` [Bug c++/12167] " stefaandr at hotmail dot com
2003-09-04 14:48 ` [Bug c++/12167] [3.4 Regression]ICE on default argument of class member function if non-simple pinskia at gcc dot gnu dot org
2003-09-04 14:49 ` [Bug c++/12167] [3.4 Regression] ICE " bangerth at dealii dot org
2003-09-05 16:31 ` nathan at gcc dot gnu dot org
2003-09-06 11:29 ` cvs-commit at gcc dot gnu dot org
2003-09-06 11:29 ` nathan 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).