﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3147	gcc 4.9 generates bad code for longjmp in local scope	Stefan Hoelldampf <stefan.hoelldampf@…>	Martin Sjölund	"I have successfully compiled openmodelica-1.9.2-beta1 (r24355) on Fedora 20 x86_64,
the simulation of examples works fine.

On Fedora 21 x86_64 however, the der() operator causes problems, e.g.:

> 1 20:47:03 Translation Error
> Error occurred while flattening model Modelica.Mechanics.Translational.Examples.SignConvention
>
> 2 20:47:03 Scripting Error
> /var/tmp/openmodelica-1.9.2-beta1/lib/omlibrary/Modelica 3.2.1/Mechanics/Translational.mo: 1439:7-1439:17: The der() operator is not allowed in function context (possible solutions: pass the derivative as an explicit input; use a block instead of function).


Any hints? Diffing the console outputs of both compile runs does not give a pointer.

Some differences between Fedora 20 and Fedora 21, which I have seen so far:

Fedora 20: gcc-4.8.3, java-1.7.0-openjdk
Fedora 21: gcc-4.9.2, java-1.8.0-openjdk

In SimulationRuntime/c/util/java_interface, I had to update antlr-3.1.3.jar to antlr-complete-3.5.2.jar for Java 8, but this will be another ticket..."	defect	closed	high	1.9.2	Code Generation	trunk	fixed		
