Bug 514884 - gcc compiler bug not present in previous versions of Fedora.
Summary: gcc compiler bug not present in previous versions of Fedora.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-31 08:57 UTC by Bob Goodwin
Modified: 2009-07-31 09:13 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-07-31 09:13:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Bob Goodwin 2009-07-31 08:57:58 UTC
Description of problem:
gcc compiler gets an error when compiling swftools;

http://www.swftools.org/

Problem applies to several versions of the software including the development and latest 'stable' version.

Fedora V-9 and gcc 4.3 compile this software without error.


Version-Release number of selected component (if applicable): gcc v-4.4.0


How reproducible:
Download and compile the swftools source code. Fairly small program. Shouldn't take long. Requires jpeglib and freetype.


Steps to Reproduce:
1. Compile swftools source code.
2.
3.
  
Actual results:

Compiler gets an error;

GFXOutputDev.cc: In function ‘void addGlobalFont(const char*)’:
GFXOutputDev.cc:2507: error: invalid conversion from ‘const char*’ to ‘char*’

Expected results:


Additional info: This same source code compiles without error on Fedora9 and ubuntu distro.

Comment 1 Jakub Jelinek 2009-07-31 09:13:16 UTC
That's not a compiler bug, the source you are trying to compile is simply invalid C++.
Look for
Strict null-terminated sequence utilities
in http://gcc.gnu.org/gcc-4.4/porting_to.html
or the C++ standard.


Note You need to log in before you can comment on or make changes to this bug.