public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/39854]  New: Segfault with a pointer of arrays
@ 2009-04-22 16:37 ryancacophony at gmail dot com
  2009-04-22 17:32 ` [Bug c++/39854] Segfault with a pointer of array of pointers ryancacophony at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: ryancacophony at gmail dot com @ 2009-04-22 16:37 UTC (permalink / raw)
  To: gcc-bugs

GCC Version: 4.3.3
System Type: Arch Linux x86_64
Compile command:  g++ -c MelodyPool.cpp 
.ii file: http://pastebin.com/m275d0f7
All the files involved with CL output at the end: http://pastebin.com/m87e98a6

Note and Melody have been compiled, tested and used with no problems, compiling
MelodyPool is where the error occurs.

I tried to replicate this error with int instead of melody, but it compiled
properly.


-- 
           Summary: Segfault with a pointer of arrays
           Product: gcc
           Version: 4.3.3
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ryancacophony at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39854


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/39854] Segfault with a pointer of array of pointers
  2009-04-22 16:37 [Bug c++/39854] New: Segfault with a pointer of arrays ryancacophony at gmail dot com
@ 2009-04-22 17:32 ` ryancacophony at gmail dot com
  2009-04-22 19:36 ` rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ryancacophony at gmail dot com @ 2009-04-22 17:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from ryancacophony at gmail dot com  2009-04-22 17:31 -------
Created an attachment (id=17676)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17676&action=view)
ii file as requested


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39854


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/39854] Segfault with a pointer of array of pointers
  2009-04-22 16:37 [Bug c++/39854] New: Segfault with a pointer of arrays ryancacophony at gmail dot com
  2009-04-22 17:32 ` [Bug c++/39854] Segfault with a pointer of array of pointers ryancacophony at gmail dot com
@ 2009-04-22 19:36 ` rguenth at gcc dot gnu dot org
  2009-04-22 21:21 ` ryancacophony at gmail dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-22 19:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2009-04-22 19:36 -------
This is likely because a PCH is used and is not included from the main .cpp
file (but Melody.h).  Try using -include note.h on the commandline to use PCHs.
Including a PCH from not the toplevel source is not supported.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39854


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/39854] Segfault with a pointer of array of pointers
  2009-04-22 16:37 [Bug c++/39854] New: Segfault with a pointer of arrays ryancacophony at gmail dot com
  2009-04-22 17:32 ` [Bug c++/39854] Segfault with a pointer of array of pointers ryancacophony at gmail dot com
  2009-04-22 19:36 ` rguenth at gcc dot gnu dot org
@ 2009-04-22 21:21 ` ryancacophony at gmail dot com
  2009-04-23  0:09 ` pinskia at gcc dot gnu dot org
  2009-04-23  0:11 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: ryancacophony at gmail dot com @ 2009-04-22 21:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from ryancacophony at gmail dot com  2009-04-22 21:20 -------
(In reply to comment #2)
> This is likely because a PCH is used and is not included from the main .cpp
> file (but Melody.h).  Try using -include note.h on the commandline to use PCHs.
> Including a PCH from not the toplevel source is not supported.
> 

Yeah, using that include thing worked......I still don't understand exactly
why- where was I using a PCH? (I just looked up the term when you responded)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39854


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/39854] Segfault with a pointer of array of pointers
  2009-04-22 16:37 [Bug c++/39854] New: Segfault with a pointer of arrays ryancacophony at gmail dot com
                   ` (2 preceding siblings ...)
  2009-04-22 21:21 ` ryancacophony at gmail dot com
@ 2009-04-23  0:09 ` pinskia at gcc dot gnu dot org
  2009-04-23  0:11 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-04-23  0:09 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|blocker                     |normal


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39854


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/39854] Segfault with a pointer of array of pointers
  2009-04-22 16:37 [Bug c++/39854] New: Segfault with a pointer of arrays ryancacophony at gmail dot com
                   ` (3 preceding siblings ...)
  2009-04-23  0:09 ` pinskia at gcc dot gnu dot org
@ 2009-04-23  0:11 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-04-23  0:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2009-04-23 00:11 -------


*** This bug has been marked as a duplicate of 38987 ***


-- 

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=39854


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-04-23  0:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-22 16:37 [Bug c++/39854] New: Segfault with a pointer of arrays ryancacophony at gmail dot com
2009-04-22 17:32 ` [Bug c++/39854] Segfault with a pointer of array of pointers ryancacophony at gmail dot com
2009-04-22 19:36 ` rguenth at gcc dot gnu dot org
2009-04-22 21:21 ` ryancacophony at gmail dot com
2009-04-23  0:09 ` pinskia at gcc dot gnu dot org
2009-04-23  0:11 ` 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).