public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/4926: Segmentation Fault on Legal Code
@ 2002-04-25 9:39 nathan
0 siblings, 0 replies; 3+ messages in thread
From: nathan @ 2002-04-25 9:39 UTC (permalink / raw)
To: anthwil, gcc-bugs, gcc-prs, nobody
Synopsis: Segmentation Fault on Legal Code
State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Thu Apr 25 09:39:51 2002
State-Changed-Why:
confirmed
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4926
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/4926: Segmentation Fault on Legal Code
@ 2002-11-01 12:36 Wolfgang Bangerth
0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Bangerth @ 2002-11-01 12:36 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/4926; it has been noted by GNATS.
From: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
To: gcc-bugs@gcc.gnu.org, <gcc-gnats@gcc.gnu.org>
Cc:
Subject: Re: c++/4926: Segmentation Fault on Legal Code
Date: Fri, 1 Nov 2002 14:31:33 -0600 (CST)
It's too bad that templates with typeof are still broken in some places,
since the (standards conforming) workarounds are also not working always.
Here's a redux of PR 4926:
--------------------------------------
template <unsigned> struct X { typedef int Type; };
template <typename T> struct Y { char array[1]; };
template<typename T> Y<T> P(T); // acts as "Y<typeof(T)>"
struct F { int operator()() const; };
template <typename T>
typename X<sizeof(P( T()() ).array)>::Type foo();
int main() { foo<F>(); };
--------------------------------------
By changing F::operator() into a "regular" member function, all sorts of
other bugs can be triggered before the compiler finally crashed :-(
Regards
Wolfgang
-------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth@ticam.utexas.edu
www: http://www.ticam.utexas.edu/~bangerth
^ permalink raw reply [flat|nested] 3+ messages in thread
* c++/4926: Segmentation Fault on Legal Code
@ 2001-11-18 14:16 anthwil
0 siblings, 0 replies; 3+ messages in thread
From: anthwil @ 2001-11-18 14:16 UTC (permalink / raw)
To: gcc-gnats
>Number: 4926
>Category: c++
>Synopsis: Segmentation Fault on Legal Code
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Thu Nov 22 02:06:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Anthony Williams
>Release: gcc-3.0.1
>Organization:
>Environment:
sparc-solaris-2.7
>Description:
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/3.0.1/specs
Configured with: ../configure --with-as=/usr/local/bin/as --with-ld=/usr/local/bin/ld
Thread model: posix
gcc version 3.0.1
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/3.0.1/cpp0 -lang-c++ -D__GNUG__=3 -D__GXX_DEPRECATED -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -v -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=1 -Dsparc -Dsun -Dunix -D__svr4__ -D__SVR4 -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D__SVR4 -D__sparc -D__sun -D__unix -Asystem=unix -Asystem=svr4 -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D_XOPEN_SOURCE=500 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D__EXTENSIONS__ -D__GCC_NEW_VARARGS__ -Acpu=sparc -Amachine=sparc gcc_et_bug.cpp gcc_et_bug.ii
GNU CPP version 3.0.1 (cpplib) (sparc)
ignoring nonexistent directory "/usr/local/sparc-sun-solaris2.7/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include/g++-v3
/usr/local/include/g++-v3/sparc-sun-solaris2.7
/usr/local/include/g++-v3/backward
/usr/local/include
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/3.0.1/include
/usr/include
End of search list.
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/3.0.1/cc1plus -fpreprocessed gcc_et_bug.ii -quiet -dumpbase gcc_et_bug.cpp -version -o gcc_et_bug.s
GNU CPP version 3.0.1 (cpplib) (sparc)
GNU C++ version 3.0.1 (sparc-sun-solaris2.7)
compiled by GNU C version 3.0.1.
gcc_et_bug.cpp: In function `int main()':
gcc_et_bug.cpp:67: 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.
>How-To-Repeat:
Compile the attached file
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="gcc_et_bug.ii.bz2"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="gcc_et_bug.ii.bz2"
QlpoOTFBWSZTWQCt5ngAAHHfgEQQWWU+nSsABgq/7976QAHXRaq2CSpGm0I0aabKBoaGgA0NGglN
FNTZJNPBT1NMho0aDRoAaGA0BoAANNBoBoA0CRU9SbUamn6aTSaHojQAaGjQ0QwxgcZDp3MuJE3g
Um/vvxm0mmV1zTPb1qc2rzsklJCNWmm95ZjbYmDG2h+jwOCvJ2WUnblrptWYKqFwiAcPovLy7Xvz
6L7Gjll8JYD66Yu1SSjZjqpptsUqRHZHAxXoLv83SgVaUrNr9zznhktzbB9F+7fVU0iCBxDamyZx
nOC6FoC4jLnfm5JGZCrDgR5NF7NbDEcttVwNRuAt29ltRVYq1BUYK6k0hMYmGjavaOxhEVrYxVIJ
UFirGJSFRwUPh4uKGctAxDJs11SwKYE2xhENsDSDaPsL4VKfQXErXmKPU0cXiVUzsWQgFWWTL7nd
DvzX4IAac5RB+qszEulwI0IKF3EhKczQl1cTYRqRmRQRORLQ+mk45VJIjeKEERahqvMRgaBTPaKY
U0ya4C3qozsV4CRpfCpFzMh3RJZgowQEpDcSAyGewxJWhRXAaz+3sbMlCw3ImBuQqxDMeQL1MoMj
8GVtkB/i7kinChIAFbzPAA==
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-11-01 20:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-25 9:39 c++/4926: Segmentation Fault on Legal Code nathan
-- strict thread matches above, loose matches on Subject: below --
2002-11-01 12:36 Wolfgang Bangerth
2001-11-18 14:16 anthwil
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).