public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/24906] New: ICE When using -fmudflap on a simple C++ source file
@ 2005-11-16 21:17 martin dot audet at imi dot cnrc-nrc dot gc dot ca
2005-11-16 21:20 ` [Bug c++/24906] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: martin dot audet at imi dot cnrc-nrc dot gc dot ca @ 2005-11-16 21:17 UTC (permalink / raw)
To: gcc-bugs
Hi,
I get the following message when I try to compile a simple C++ source file
using strings:
strbug.cpp: In member function 'void AClass::meth(AClass::AnInterface&)':
strbug.cpp:17: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccvs6PL2.out file, please attach this to
your bugreport.
This happens when I compile as follow:
g++ -Wall -fmudflap -c strbug.cpp
Without the -fmudflap flag, there is no ICE.
The corresponding source file is:
#include <string>
class AClass {
private:
std::string name;
public:
class AnInterface {
public:
virtual bool intf_meth(AClass &p_aclass) = 0;
virtual ~AnInterface(void) { }
};
void meth(AnInterface &p_interf);
};
void AClass::meth(AnInterface &p_interf)
{
name = std::string();
p_interf.intf_meth(*this);
}
I did not included the preprocessed source file since it is more than 19k lines
long.
Note also that I'm using Fedora Core 4 Linux with the gcc update installed
(this is why it is version 4.0.1).
Regards,
Martin
--
Summary: ICE When using -fmudflap on a simple C++ source file
Product: gcc
Version: 4.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: martin dot audet at imi dot cnrc-nrc dot gc dot ca
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24906
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/24906] ICE When using -fmudflap on a simple C++ source file
2005-11-16 21:17 [Bug c++/24906] New: ICE When using -fmudflap on a simple C++ source file martin dot audet at imi dot cnrc-nrc dot gc dot ca
@ 2005-11-16 21:20 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-16 21:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2005-11-16 21:20 -------
This is a dup of bug 19266 which is fixed for 4.1.0.
*** This bug has been marked as a duplicate of 19266 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24906
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-11-16 21:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-16 21:17 [Bug c++/24906] New: ICE When using -fmudflap on a simple C++ source file martin dot audet at imi dot cnrc-nrc dot gc dot ca
2005-11-16 21:20 ` [Bug c++/24906] " 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).