https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71955

            Bug ID: 71955
           Summary: Core dump and interesting behaviour while using
                    reference class members
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: anand312 at rediffmail dot com
  Target Milestone: ---

I have 3 programs attached p1,p2 and p3.cpp. p3 seems to dump core where as p1
and p2 work fine. seems like some compiler optimization is blowing it away as
per stack trace. gcc version is below. All 3 programs are same esentially 
with just commented code sections [ which are entirely independent logically ]

g++ -fpermissive -o p1.out p1.cpp
g++ -fpermissive -o p2.out p2.cpp
g++ -fpermissive -o p3.out p3.cpp

[anand@ldnpsr2937 gcc-question]$ gcc --version
gcc (GCC) 6.1.1 20160621 (Red Hat 6.1.1-3)
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Reply via email to