public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58308] New: Segmentation fault: internal compiler error: in make_decl_rtl, at varasm.c:1147
@ 2013-09-03 17:38 dmitriy-hshg at mail dot ru
  2013-09-03 17:39 ` [Bug c++/58308] " dmitriy-hshg at mail dot ru
  2013-09-04  8:45 ` rguenth at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: dmitriy-hshg at mail dot ru @ 2013-09-03 17:38 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58308
           Summary: Segmentation fault: internal compiler error: in
                    make_decl_rtl, at varasm.c:1147
           Product: gcc
           Version: 4.7.3
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dmitriy-hshg at mail dot ru

Next code causes GCC 4.7.3 to fail, it should report problem.

int main()
{
    int x = 666;

    struct A {
        int *p = &x;
    } a;
}

Thank you.


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

* [Bug c++/58308] Segmentation fault: internal compiler error: in make_decl_rtl, at varasm.c:1147
  2013-09-03 17:38 [Bug c++/58308] New: Segmentation fault: internal compiler error: in make_decl_rtl, at varasm.c:1147 dmitriy-hshg at mail dot ru
@ 2013-09-03 17:39 ` dmitriy-hshg at mail dot ru
  2013-09-04  8:45 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: dmitriy-hshg at mail dot ru @ 2013-09-03 17:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Dmitry <dmitriy-hshg at mail dot ru> ---
c++11 mode is used


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

* [Bug c++/58308] Segmentation fault: internal compiler error: in make_decl_rtl, at varasm.c:1147
  2013-09-03 17:38 [Bug c++/58308] New: Segmentation fault: internal compiler error: in make_decl_rtl, at varasm.c:1147 dmitriy-hshg at mail dot ru
  2013-09-03 17:39 ` [Bug c++/58308] " dmitriy-hshg at mail dot ru
@ 2013-09-04  8:45 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-09-04  8:45 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid,
                   |                            |ice-on-invalid-code
      Known to fail|                            |4.7.3, 4.8.0

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
t.C: In function 'int main()':
t.C:6:26: error: use of local variable with automatic storage from containing
function
                int *p = &x;
                          ^
t.C:3:11: note: 'int x' declared here
       int x = 666;
           ^


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

end of thread, other threads:[~2013-09-04  8:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-03 17:38 [Bug c++/58308] New: Segmentation fault: internal compiler error: in make_decl_rtl, at varasm.c:1147 dmitriy-hshg at mail dot ru
2013-09-03 17:39 ` [Bug c++/58308] " dmitriy-hshg at mail dot ru
2013-09-04  8:45 ` rguenth at gcc dot gnu.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).