From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15580 invoked by alias); 16 Dec 2004 14:30:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 15472 invoked by uid 48); 16 Dec 2004 14:30:19 -0000 Date: Thu, 16 Dec 2004 14:30:00 -0000 Message-ID: <20041216143019.15470.qmail@sourceware.org> From: "tobi at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20041216112828.19032.Thomas.Koenig@online.de> References: <20041216112828.19032.Thomas.Koenig@online.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug libfortran/19032] modulo generates wrong result X-Bugzilla-Reason: CC X-SW-Source: 2004-12/txt/msg02372.txt.bz2 List-Id: ------- Additional Comments From tobi at gcc dot gnu dot org 2004-12-16 14:30 ------- The second result is correct, the first wrong. The difference results from the fact that the first statement is evaluated by gfortran's constant folding pass, whereas the second is evaluated in generated code. In other words, the code generation for modulo is wrong. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2004-12-16 14:30:16 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19032