[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

strlen/template interaction causes ICE



>Submitter-Id:	net
>Originator:	Martin Dorey <martin.dorey@bluearc.com>
>Organization:	The Debian Project
>Confidential:	no
>Synopsis:	
>Severity:	serious
>Priority:	medium
>Category:	g++
>Class:		ice-on-legal-code
>Release:	3.2.1 (Debian) (Debian unstable)
>Environment:
System: Debian GNU/Linux (unstable)
Architecture: i686
host: i386-linux
Configured with: /home/packages/gcc/3.2/gcc-3.2-3.2.1ds5/src/configure -v --enable-languages=c,c++,java,f77,proto,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-java-gc=boehm --enable-objc-gc i386-linux
>Description:
[ Reported to the Debian BTS as report #166143.
  Please CC 166143@bugs.debian.org on replies.
  Log of report can be found at http://bugs.debian.org/166143 ]

[ rechecked with gcc-3.2.1 CVS 20021111 and HEAD 20021103, however I do
  see the failure on HEAD as well ]

---
template <typename A1>
void monk2 (A1) {}


unsigned int strlen (const char*);

void monk ()
{
  monk2 (strlen (""));
}
---
$ g++-3.2 -g -W -Wall -pedantic -c bug-166143.cc
bug-166143.cc: In function `void monk()':
bug-166143.cc:9: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
$

Using -fno-builtin the ICE does not happen:

$ g++-3.2 -fno-builtin -g -W -Wall -pedantic -c bug-166143.cc
$

	
>How-To-Repeat:
	
>Fix:
	



Reply to: