[Bug c/26589] New: Optimizer hangs on conditional expression

2006-03-06 Thread pmcilroy at gmail dot com
I compiled this trivial function on the OS X 10.3.9 g++ compiler, which is
still only version 3.3.  With the optimizer enabled -O2, the compiler hangs. 
Without optimization, the compile succeeds.

Code:


int f(int x) {
 return 1 / (x ? 1 : 0) ;
}

GCC VERSION:
gcc version 3.3 20030304 (Apple Computer, Inc. build 1666)


-- 
   Summary: Optimizer hangs on conditional expression
   Product: gcc
   Version: 3.3.6
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pmcilroy at gmail dot com


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



[Bug c/26589] Optimizer hangs on conditional expression

2006-03-07 Thread pmcilroy at gmail dot com


--- Comment #2 from pmcilroy at gmail dot com  2006-03-07 17:14 ---
Subject: Re:  Optimizer hangs on conditional expression

OK, thanks very much.


I will let them know.

  - Peter



On Mar 6, 2006, at 8:43 PM, pinskia at gcc dot gnu dot org wrote:

>
>
> --- Comment #1 from pinskia at gcc dot gnu dot org  2006-03-07  
> 04:43 ---
> This works in 3.3.2 with the FSF GCC.  Please report this bug to Apple  
> first
> since it is their modified version of gcc.
>
>
> --  
>
> pinskia at gcc dot gnu dot org changed:
>
>What|Removed |Added
> --- 
> -
>  Status|UNCONFIRMED |RESOLVED
>  Resolution||WORKSFORME
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26589
>
> --- You are receiving this mail because: ---
> You reported the bug, or are watching the reporter.
>


-- 


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