public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/7062: Segmentation fault on type_info
@ 2002-06-18  3:38 philippeb
  0 siblings, 0 replies; 2+ messages in thread
From: philippeb @ 2002-06-18  3:38 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7062
>Category:       c++
>Synopsis:       Segmentation fault on type_info
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 17 20:36:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     g++
>Release:        gcc version 2.95.4 20011006 (Debian prerelease)
>Organization:
>Environment:
Linux 2.2.19pre17 i686
>Description:
I've got a segmentation fault when dereferencing a type_info object at runtime.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="typeof_cpp.txt"
Content-Disposition: inline; filename="typeof_cpp.txt"

#include <iostream>
#include <typeinfo>


using namespace std;


template <typename _T>
	struct i
	{
		static type_info const * const n;
	};

template <typename _T>
	type_info const * const i<_T>::n = & typeid(_T);


int main()
{
	cout << i<int>::n->name() << endl;
}




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

* Re: c++/7062: Segmentation fault on type_info
@ 2002-06-24  8:21 lerdsuwa
  0 siblings, 0 replies; 2+ messages in thread
From: lerdsuwa @ 2002-06-24  8:21 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, philippeb

Synopsis: Segmentation fault on type_info

State-Changed-From-To: open->closed
State-Changed-By: lerdsuwa
State-Changed-When: Mon Jun 24 08:06:51 2002
State-Changed-Why:
    Fixed in more recent versions of GCC (such as GCC 3.0).

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7062


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

end of thread, other threads:[~2002-06-24 15:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-18  3:38 c++/7062: Segmentation fault on type_info philippeb
2002-06-24  8:21 lerdsuwa

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).