This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/5750: g++ segfaults when using the gcc-extention of typeof() in a template class



>Number:         5750
>Category:       c++
>Synopsis:       g++ segfaults when using the gcc-extention of typeof() in a template class
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 22 04:46:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Björn Samuelsson
>Release:        gcc version 3.0.3     gcc version 3.0.3
>Organization:
>Environment:
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/specs
Configured with: ../configure --prefix=/usr/local
Thread model: single
>Description:
fjuff.cc: In instantiation of `atom_chain<__typeof (base<Chain>::chain(>':
fjuff.cc:13:   instantiated from here
fjuff.cc:4: Internal error: Segmentation fault

caused by use of typeof() to define a typedef inside
a template class
>How-To-Repeat:
 g++ -c fjuff.i 
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="fjuff.i"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="fjuff.i"

IyAxICJmanVmZi5jYyIKdGVtcGxhdGUgPGNsYXNzIEE+CnN0cnVjdCBhdG9tX2NoYWluCnsKICBz
dGF0aWMgY29uc3QgaW50IG4gPSBBOjpuOwp9OwoKdGVtcGxhdGUgPGNsYXNzIENoYWluPgpzdHJ1
Y3QgYmFzZQp7CiAgc3RhdGljIGNvbnN0IENoYWluIGNoYWluOwogIHR5cGVkZWYgdHlwZW9mKGNo
YWluKSB1Z2x5OwogIHR5cGVkZWYgYXRvbV9jaGFpbjx1Z2x5PiBmanVwcDsKICBzdGF0aWMgY29u
c3QgaW50IG0gPSBmanVwcDo6bjsKfTsKCmludCBtYWluKCkKewp9Cg==


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]