- To: gcc-help@xxxxxxxxxxx
- Subject: Re: Run-time error with virtual function w/o invocation
- From: Arthur Schwarz <aschwarz1309@xxxxxxx>
- Date: Thu, 31 May 2012 10:20:14 -0700 (PDT)
- Cc: Jonathan Wakely <jwakely.gcc@xxxxxxxxx>
- Comment: DKIM? See http://www.dkim.org
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
Thank you Jonathan;
I ran the compiler from the shell (g++ -pedantic main.cpp) without any errors or
warnings and with the same results. I don't think that the method 'new' is in
error. The segmentation fault does not occur unless the virtual function, fnc,
is uncommented. If 'fnc' is commented, 'new' executes correctly. I think that
this might be a compiler bug, but before I waste anyone's time I thought I'd get
validation that I'm not doing some dumb ol' thing.
art
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]