This is the mail archive of the gcc-prs@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]

c++/102: Re: C++ bug in __builtin_apply()


	Note: There was a bad value `rejects-legal-code' for the field `>Class:'.
	It was set to the default value of `sw-bug'.


>Number:         102
>Category:       c++
>Synopsis:       C++ bug in __builtin_apply()
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    unassigned
>State:          analyzed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 12 10:36:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     colin@field.medicine.adelaide.edu.au
>Release:        2.95.2
>Organization:
>Environment:
>Description:
 Date: Mon, 13 Mar 2000 00:49:57 +1100
 Original-Message-Id: <20000312134957.506922F02A@sharedtech.eyep.net>


 The following compiles under gcc, but results in the following error under g++:

 Errors:
 g++ -o apply1 apply1.c
 apply1.c: In function `void fn(int)':
 apply1.c:5: argument passing to `void * ()(unsigned int)' from `void *'

 Code:
 extern void fn1();
 void fn (int b){
	 __builtin_apply( (void (*)())fn1,
			  __builtin_apply_args(),
			  32);
 }


>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:

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