public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/21040] New: Segmentation fault on template/typedef typo
@ 2005-04-15 6:32 sjanssen at cse dot unl dot edu
2005-04-15 12:27 ` [Bug c++/21040] [3.3 regression] " belyshev at depni dot sinp dot msu dot ru
2005-05-02 0:43 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: sjanssen at cse dot unl dot edu @ 2005-04-15 6:32 UTC (permalink / raw)
To: gcc-bugs
g++ reports: "gpp_bug.cpp:10: internal compiler error: Segmentation fault", on
both Gentoo Linux (gcc 3.3.5) and Solaris (gcc 3.3.2).
Full output of "g++ gpp_bug.cpp":
gpp_bug.cpp: In function `void func()':
gpp_bug.cpp:10: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /tmp/ccIkMcGH.out file, please attach this to
your bugreport.
Output of "g++ -v" on the Linux system:
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/specs
Configured with: /var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/configure
--enable-version-specific-runtime-libs --prefix=/usr
--bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3.5
--includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/info
--with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include/g++-v3
--host=i686-pc-linux-gnu --disable-altivec --enable-nls
--without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu
--with-system-zlib --disable-checking --disable-werror
--disable-libunwind-exceptions --enable-shared --enable-threads=posix
--disable-multilib --enable-java-awt=gtk --enable-languages=c,c++,f77,java
Thread model: posix
gcc version 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)
Offending source code:
//BEGIN SOURCE CODE:
template <class T>
struct bar {
typedef T INNER_TYPE_DEF;
};
template<class T>
void func(){
typedef typename bar<T>::INNER_TYPE_DEF LOCAL_TYPE_DEF;
LOCAL_TYPE_DEF<T> b;
}
int main(){ }
//END SOURCE CODE
Obviously "LOCAL_TYPE_DEF<T>" is nonsensical, I stumbled on this segfault as a
result of a typo.
--
Summary: Segmentation fault on template/typedef typo
Product: gcc
Version: 3.3.5
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sjanssen at cse dot unl dot edu
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21040
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/21040] [3.3 regression] Segmentation fault on template/typedef typo
2005-04-15 6:32 [Bug c++/21040] New: Segmentation fault on template/typedef typo sjanssen at cse dot unl dot edu
@ 2005-04-15 12:27 ` belyshev at depni dot sinp dot msu dot ru
2005-05-02 0:43 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: belyshev at depni dot sinp dot msu dot ru @ 2005-04-15 12:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From belyshev at depni dot sinp dot msu dot ru 2005-04-15 12:26 -------
3.3 branch breakage, almost surely WONTFIX.
: Search converges between 2003-07-19-3.3 (#129) and 2003-07-20-3.3 (#130).
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-invalid-code
Known to fail| |3.3.5
Known to work| |3.3 3.4.4 4.0.0
Last reconfirmed|0000-00-00 00:00:00 |2005-04-15 12:26:53
date| |
Summary|Segmentation fault on |[3.3 regression]
|template/typedef typo |Segmentation fault on
| |template/typedef typo
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21040
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/21040] [3.3 regression] Segmentation fault on template/typedef typo
2005-04-15 6:32 [Bug c++/21040] New: Segmentation fault on template/typedef typo sjanssen at cse dot unl dot edu
2005-04-15 12:27 ` [Bug c++/21040] [3.3 regression] " belyshev at depni dot sinp dot msu dot ru
@ 2005-05-02 0:43 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-02 0:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-02 00:43 -------
Closing as will not fix.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
Target Milestone|--- |3.3.6
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21040
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-05-02 0:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-15 6:32 [Bug c++/21040] New: Segmentation fault on template/typedef typo sjanssen at cse dot unl dot edu
2005-04-15 12:27 ` [Bug c++/21040] [3.3 regression] " belyshev at depni dot sinp dot msu dot ru
2005-05-02 0:43 ` 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).