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

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-12-23
                 CC|                            |janus at gcc dot gnu.org
            Summary|memory allocation failed    |[OOP] Runtime segfault with
                   |with parenthesis            |type-bound assignment and
                   |                            |parenthesis
     Ever confirmed|0                           |1

--- Comment #1 from janus at gcc dot gnu.org ---
I'm not actually sure that the segfault is related to memory allocation. In any
case, the output of the test case in comment 0 is:


$ ./a.out 
 called ass
 C: 
 called ass
 C:    1.00000000    
 called ass

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0  0x7F73005265F7
#1  0x7F7300526C3E
#2  0x7F72FFA23D9F
#3  0x7F72FFA85B5E
#4  0x401926 in MAIN__ at c0.f90:32 (discriminator 1)
Speicherzugriffsfehler (Speicherabzug geschrieben)


This means that the call to 'ass' generated from 'c = (a)' is performed
alright, but something goes wrong after that. Possibly related to cleaning up a
temporary which is generated for '(a)'?

Reply via email to