c++/5838: I get a compiler error

rodrigc@gcc.gnu.org rodrigc@gcc.gnu.org
Tue Mar 5 17:03:00 GMT 2002


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



More information about the Gcc-bugs mailing list