This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/5838: I get a compiler error
- From: flatmax at cse dot unsw dot edu dot au (Matthew Flax)
- To: rodrigc at gcc dot gnu dot org, flatmax at ieee dot org, gcc-bugs at gcc dot gnu dot org,gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
- Date: Wed, 6 Mar 2002 18:36:29 +1100
- Subject: Re: c++/5838: I get a compiler error
- References: <20020306010348.11371.qmail@sources.redhat.com>
I have just updated to g++-3.0 It seems too difficult at this point to use
this version of g++, 'cause there is too much I have to do to fix my
current code ..... I would rather wait for g++-3.0 to mature a little
before upgrading.
Is it possible to fix this bug in g++-2.95 ?
On 6 March 2002, rodrigc@gcc.gnu.org wrote:
> Synopsis: I get a compiler error
>
> State-Changed-From-To: open->closed
> State-Changed-By: rodrigc
> State-Changed-When: Tue Mar 5 17:03:47 2002
> State-Changed-Why:
> Compiling with gcc 3.0.4 does not crash the compiler
> but results in this error:
>
> In file included from morphTest.C:17:
> ../macroBlock/X/macroBlockImageInterface.H: In constructor
> `MacroBlockImageInterface<TYPE,
> AUDIOWINDOWERTYPE>::MacroBlockImageInterface(int, int, AUDIOWINDOWERTYPE*)':
> ../macroBlock/X/macroBlockImageInterface.H:108: cannot convert `void (*)()' to
> `void (*)(void*, void*)' in initialization
> morphTest.C: At global scope:
> morphTest.C:24: `main' must return `int'
>
>
>
>
>
>
>
>
>
> Compiling with gcc 3.1 20020302 (prerelease):
>
> morphTest.C:24: `main' must return `int'
> ../macroBlock/X/macroBlockImageInterface.H: In constructor `MacroBlockImageInterface<TYPE, AUDIOWINDOWERTYPE>::MacroBlockImageInterface(int, int, AUDIOWINDOWERTYPE*) [with TYPE = double, AUDIOWINDOWERTYPE = AudioWindower<field>]':
> morphTest.C:106: instantiated from here
> ../macroBlock/X/macroBlockImageInterface.H:108: invalid conversion from `void (*)()' to `void (*)(void*, void*)'
> ../macroBlock/X/macroBlockImageInterface.H: In static member function `static int MacroBlockImageInterface<TYPE, AUDIOWINDOWERTYPE>::viewButton(GtkWidget*, void*) [with TYPE = double, AUDIOWINDOWERTYPE = AudioWindower<field>]':
> ../macroBlock/X/macroBlockImageInterface.H:108: instantiated from `MacroBlockImageInterface<TYPE, AUDIOWINDOWERTYPE>::MacroBlockImageInterface(int, int, AUDIOWINDOWERTYPE*) [with TYPE = double,
> AUDIOWINDOWERTYPE = AudioWindower<field>]'
> morphTest.C:106: instantiated from here
> ../macroBlock/X/macroBlockImageInterface.H:30: no matching function for call to `MacroBlockImageInterface<double, AudioWindower<field> >::reProcess()'
>
>
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5838
--
Matt
For electronic musicians ...
Vector Bass : http://mffmvectorbass.sourceforge.net/
For developers ...
TimeScale Audio Mod : http://mffmtimescale.sourceforge.net/
Multimedia Time Code : http://mffmtimecode.sourceforge.net/
3D Audio Library : http://mffm3daudiolib.sourceforge.net/