This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/67930] segmentation fault
- From: "ka_bena at yahoo dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 13 Oct 2015 14:33:13 +0000
- Subject: [Bug c/67930] segmentation fault
- Auto-submitted: auto-generated
- References: <bug-67930-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67930
--- Comment #2 from BENAÃSSA <ka_bena at yahoo dot fr> ---
ÂThank you for your reply.
ÂComments::
ÂI am not convinced by your point of view.
Â1- the compilation step does not deliver any message.
Â2- I modify the string by address and this is permitted by C for any entity
not
ÂÂÂ private in its context.
Â3- if the compiler gcc allows segmentation fault for basic operations on
pointers,
ÂÂÂ I think that this is a severe bug and in consequence the compiler must be
ÂÂÂ modified to remedie for such situations.
ÂThis is my point of view.ÂÂÂ
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ A.BenaÃssa
Le Lundi 12 octobre 2015 13h16, mpolacek at gcc dot gnu.org
<gcc-bugzilla@gcc.gnu.org> a Ãcrit :
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67930
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
     What  |Removed          |Added
----------------------------------------------------------------------------
      Status|UNCONFIRMED        |RESOLVED
        CC|              |mpolacek at gcc dot gnu.org
    Resolution|---            |INVALID
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
You're trying to modify a string literal. That's no-no.