Problems with GCC 4.3 C++

Antonio Olivares olivares14031 at yahoo.com
Thu Feb 7 02:07:04 UTC 2008


--- Jakub Jelinek <jakub at redhat.com> wrote:

> On Tue, Feb 05, 2008 at 11:20:01PM -0300, Horst H.
> von Brand wrote:
> > Note that the f() function can be called with one
> argument, and that is
> > what the template use tries to do; g++ complains:
> > 
> >   $ g++ -O2 -c tst.cc 
> >   tst.cc: In function ‘void ff(int, T) [with T =
> void (*)(int, int)]’:
> >   tst.cc:13:   instantiated from here
> >   tst.cc:4: error: too few arguments to function
> > 
> > I'm no C++ expert at all, so both the "how it used
> to work" and the current
> > behavior sound reasonable. Can somebody shed some
> light? Should this be
> > documented as a GCC change, or is it a bug?
> 
> I believe the testcase is invalid, see
>
http://gcc.gnu.org/ml/gcc-patches/2007-07/msg01645.html
> Default arguments are a property of a function
> declaration, not function
> type and as such shouldn't be part of a deduced
> type, or typeof/decltype.
> 
> 	Jakub
> 
> -- 
> fedora-test-list mailing list
> fedora-test-list at redhat.com
> To unsubscribe: 
>
https://www.redhat.com/mailman/listinfo/fedora-test-list
> 

FYI, 

I have successfully compiled mplayer from source under
gcc4.3, it was working successfully under gcc 4.1.2 

[olivares at localhost ~]$ /usr/local/bin/mplayer
-playlist .cadetes 
MPlayer 1.0rc2-4.3.0 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) XP  2600+ (Family: 6, Model: 10,
Stepping: 0)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1
SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow
3DNowEx SSE

for other programs, I do not know, but this one at
least works under the new gcc 4.3.

Regards,

Antonio 


      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping




More information about the fedora-test-list mailing list