#8773: GCC-4.5.0 breaks GAP -- the workspace is broken, hence gap('2+2') fails.
-----------------------+----------------------------------------------------
   Reporter:  was      |       Owner:  GeorgSWeber                              
       Type:  defect   |      Status:  new                                      
   Priority:  blocker  |   Milestone:  sage-4.4.1                               
  Component:  build    |    Keywords:                                           
     Author:           |    Upstream:  Reported upstream. Little or no feedback.
   Reviewer:           |      Merged:                                           
Work_issues:           |  
-----------------------+----------------------------------------------------

Comment(by wjp):

 The issue here seems to be that gap is returning a {{{StructInitInfo*}}}
 from {{{SyFindOrLinkGapRootFile}}} inside a char buffer. In the process of
 extracting the pointer again in {{{READ_GAP_ROOT}}}, gap might be breaking
 strict aliasing rules.

 I think that ideally this method of returning values should be removed
 entirely (since it seems to serve no purpose), and
 {{{SyFindOrLinkGapRootFile}}} should just get an extra argument of type
 {{{StructInitInfo**}}} for returning this pointer.


 Incidentally gcc 4.5.0 also complains about a similar issue in
 {{{SaveDouble}}}, {{{LoadDouble}}}. Although that seems to be currently
 working, using a union there might be safer than casting directly.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8773#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to