This is the mail archive of the gcc-bugs@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]

Bug report


Below are details of what I think is a minor gcc bug as the fragment
consistently provokes an
   internal compiler error

Given that it's a relatively obscure combination, and not at all hard to
work around.  In short I can forgive a compiler getting this wrong and it
doesn't really matter to us whether a fix becomes available.

Regards Robin Schoolar

(I'm quite a fan of gcc really!)




gcc -v --save-temps -c hack.cpp
Reading specs from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.1/specs
gcc version 2.95.1 19990816 (release)
 /usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.1/cpp -lang-c++ -v
-D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -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__EXCEPTIONS -D__GCC_NEW_VARARGS__ -Acpu(sparc) -Amachine(sparc) hack.cpp
hack.ii
GNU CPP version 2.95.1 19990816 (release) (sparc)
#include "..." search starts here:
#include <...> search starts here:
 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.1/../../../../include/g++
-3
 /usr/local/include
 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.1/../../../../sparc-sun-s
olaris2.5.1/include
 /usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.1/include
 /usr/include
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.
 /usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.1/cc1plus hack.ii -quiet
-dumpbase hack.cc -version -o hack.s
GNU C++ version 2.95.1 19990816 (release) (sparc-sun-solaris2.5.1) compiled
by GNU C version 2.95.1 19990816 (release).
hack.cpp: In function `void proc()':
hack.cpp:8: Internal compiler error.
hack.cpp:8: Please submit a full bug report.
hack.cpp:8: See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for
instructions.





hack.ii is so short that I'm pasting it here (uncompressed!)

# 1 "hack.cpp"
extern char trouble[];

template <class T>
void dire(T const &);

void proc()
{
    dire(trouble);;
}





Robin Schoolar
Entuity
DDI:  +44 (0)207 444 4812
Fax:  +44 (0)207 444 4808	Email:	robin.schoolar@entuity.com
Web:	http://www.entuity.com
Notice - This message is intended for use by the named addressee and may
contain privileged and/or confidential information. If you have received
this message in error please inform the sender and delete the message and
any attachments accompanying it immediately.


Notice - This message is intended for use by the named addressee and may
contain privileged and/or confidential information. If you have received
this message in error please inform the sender and delete the message and
any attachments accompanying it immediately.

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