This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13338] New: Compile error with G++ 3.3, but G++ 3.2 works fine


	When trying to compile an alsa plugin for the mupen64 N64 emulator, g++ complains
	about audio.cpp file with the following error:
	
	audio.cpp: En member function `bool Plugin_Audio_Driver::initAlsa()':
	audio.cpp:195: error: non-lvalue in unary `&'
	
	Source code of the plugin can be found at http://ngemu.com/n64/mupen64.php?action=plugins
	(by the end). The line involving the error is:

	snd_pcm_hw_params_get_channels_max( hw_params, &(uint)var_int );

	Note: var_int is a static int in the same file.

Environment:
System: Linux elfstar 2.6.0-test9 #1 Sun Nov 16 00:21:32 CET 2003 i686 GNU/Linux
Architecture: i686

	
host: i486-pc-linux-gnu
build: i486-pc-linux-gnu
target: i486-pc-linux-gnu
configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux

How-To-Repeat:
	Haven't tested in other systems with g++ 3.3.
------- Additional Comments From Haplo at Knoppix  2003-12-07 00:20 -------
Fix:
	The problem disappeared changing the Makefile to use g++-3.2 instead of g++
	(which is g++-3.3 in my Debian system).

-- 
           Summary: Compile error with G++ 3.3, but G++ 3.2 works fine
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Haplo at Knoppix
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i486-pc-linux-gnu
  GCC host triplet: i486-pc-linux-gnu
GCC target triplet: i486-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13338


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]