c++/5838: I get a compiler error
Matthew Flax
flatmax@cse.unsw.edu.au
Tue Mar 5 23:46:00 GMT 2002
The following reply was made to PR c++/5838; it has been noted by GNATS.
From: flatmax@cse.unsw.edu.au (Matthew Flax)
To: rodrigc@gcc.gnu.org, flatmax@ieee.org, gcc-bugs@gcc.gnu.org,
gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Cc:
Subject: Re: c++/5838: I get a compiler error
Date: Wed, 6 Mar 2002 18:36:29 +1100
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/
More information about the Gcc-prs
mailing list