Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 13166
Product:  
Component:  
Status: NEW
Resolution:
Assigned To: Not yet assigned to anyone <unassigned@gcc.gnu.org>
Host:
Reported against  
Priority:  
Severity:  
Target Milestone:  
 
 
Target:
Reporter: Rafael Ávila de Espíndola <rafael.espindola@ic.unicamp.br>
Add CC:
CC:
Remove selected CCs
Build:
URL:
Summary:
Keywords:
Known to work:
Known to fail:

Attachment Description Type Created Size Actions
sc_bv_base.ii.bz2 the file that triggers the bug application/x-bzip2 2003-11-23 13:16 143.70 KB Edit
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 13166 depends on: Show dependency tree
Show dependency graph
Bug 13166 blocks:

Additional Comments:





Mark bug as waiting for feedback
Mark bug as suspended




View Bug Activity   |   Format For Printing   |   Clone This Bug


Description:   Last confirmed: 2006-09-03 21:39 Opened: 2003-11-23 13:13
The problem occurs while compiling systemc with gcc 3.4. It compiles normally
with gcc 3.3 
The details: 

$gcc -v 
Reading specs from /home/rafael/gcc_main/lib/gcc/i686-pc-linux-gnu/3.4/specs 
Configured with: ../gcc_main/configure --prefix=/home/rafael/gcc_main
--enable-languages=c,c++ 
Thread model: posix 
gcc version 3.4 20031122 (experimental) 

Command: 
 g++ -O3 -c sc_bv_base.ii 

g++ output: 
 g++ -O3 -c  src/systemc/datatypes/bit/sc_bv_base.ii  
In file included from ../../../../src/systemc/datatypes/bit/sc_proxy.h:51, 
                 from
../../../../src/systemc/datatypes/bit/sc_bit_proxies.h:41, 
                 from ../../../../src/systemc/datatypes/bit/sc_bv_base.h:41, 
                 from sc_bv_base.cpp:38: 
../../../../src/systemc/datatypes/int/sc_unsigned.h:1939: internal compiler
error: Falha de segmentação 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

------- Comment #1 From Rafael Ávila de Espíndola 2003-11-23 13:16 -------
Created an attachment (id=5193) [edit]
the file that  triggers the bug

------- Comment #2 From Falk Hueffner 2003-11-23 14:54 -------
Confirmed. Test case:

namespace sc_dt {
    class sc_length_param {
	friend int compare_unsigned(int if_v_signed = 0);
    };
}

------- Comment #3 From Volker Reichelt 2003-12-03 22:33 -------
Nathan's patch for PR 9162

http://gcc.gnu.org/ml/gcc-cvs/2003-07/msg00137.html

caused the regression.

------- Comment #4 From CVS Commits 2003-12-05 14:45 -------
Subject: Bug 13166

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	lerdsuwa@gcc.gnu.org	2003-12-05 14:45:00

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

Log message:
	PR c++/13166
	* parser.c (cp_parser_late_parsing_default_args): Make sure the
	context is a class before calling push_nested_class and
	pop_nested_class.
	
	* g++.dg/parse/defarg6.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3781&r2=1.3782
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.126&r2=1.127
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3230&r2=1.3231
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/defarg6.C.diff?cvsroot=gcc&r1=NONE&r2=1.1


------- Comment #5 From Kriang Lerdsuwanakij 2003-12-05 14:49 -------
The regression is fixed in the mainline.  So it no longer ICE.
However the behavior mentioned in DR136 (limiting which friend
declaration can have default function argument) is not yet implemented.
So I keep this bug report open, change keywords into an accept-invalid
and adjust the summary accordingly.

------- Comment #6 From Kriang Lerdsuwanakij 2005-10-22 13:57 -------
Won't work on it for a long while.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug