public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/42189]  New: gfc_is_constant_expr has unacceptable side effects
@ 2009-11-26 21:58 burnus at gcc dot gnu dot org
  2009-12-03  4:08 ` [Bug fortran/42189] " jvdelisle at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-11-26 21:58 UTC (permalink / raw)
  To: gcc-bugs

Follow up to PR 41807 - based on the comment at
http://gcc.gnu.org/ml/fortran/2009-11/msg00181.html
cf. also http://gcc.gnu.org/ml/fortran/2009-11/msg00208.html

"it is both unacceptable and unanticipated that gfc_is_constant_expr have side
effects like that.  Should we, perhaps copy the expression within
gfc_is_constant_expr, test that and free the new expression before exiting?"

and in http://gcc.gnu.org/ml/fortran/2009-11/msg00185.html

"I think we have some other bugs lurking here. For example, why could we
simplify the original expr in get_array_index and not it's copy. gfc_copy_expr
is missing something.

"The gfc_is_constant_expr issue is down in gfc_constant_ac. I think we may be
trying to expand the constructors in more than one place, in gfc_constant_ac
and somewhere else."


-- 
           Summary: gfc_is_constant_expr has unacceptable side effects
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <bug-42189-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2011-03-20  4:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-26 21:58 [Bug fortran/42189] New: gfc_is_constant_expr has unacceptable side effects burnus at gcc dot gnu dot org
2009-12-03  4:08 ` [Bug fortran/42189] " jvdelisle at gcc dot gnu dot org
2009-12-04 19:52 ` dfranke at gcc dot gnu dot org
2009-12-05  4:18 ` jvdelisle at gcc dot gnu dot org
2010-01-23 14:09 ` jvdelisle at gcc dot gnu dot org
     [not found] <bug-42189-4@http.gcc.gnu.org/bugzilla/>
2011-02-07  5:32 ` jvdelisle at gcc dot gnu.org
2011-03-06 21:17 ` jvdelisle at gcc dot gnu.org
2011-03-07 10:04 ` dominiq at lps dot ens.fr
2011-03-20  8:13 ` jvdelisle 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).