[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::c_plus_plus

Title:C++
Notice:Read 1.* and use keywords (e.g. SHOW KEY/FULL KIT_CXX_VAX_VMS)
Moderator:DECCXX::AMARTIN
Created:Fri Nov 06 1987
Last Modified:Thu Jun 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3604
Total number of notes:18242

2987.0. "Bugcheck in type_to_pointer defining int member as function" by EVTAI1::ROCHE () Fri Mar 29 1996 05:59

T.RTitleUserPersonal
Name
DateLines
2987.1CSC32::D_DERAMODan D'Eramo, Customer Support CenterFri Mar 29 1996 10:2612
2987.2NotedDECCXX::AMARTINAlan H. MartinFri Mar 29 1996 10:5411
2987.3CSC32::D_DERAMODan D'Eramo, Customer Support CenterFri Oct 18 1996 13:355
2987.4CXXC::COLEENWed Feb 12 1997 16:269
The problem with the compiler ACCVIO'ing instead of
reporting a redeclaration error has been fixed in the
latest development version of the compiler.  The next
release -v5.6 will contain the fix.

Thanks for reporting the problem,
Coleen Phillimore
DEC C++ development
2987.5how to identify the problem?CSC32::J_HENSONDon't get even, get ahead!Thu Apr 03 1997 11:2316
I need a little help with this problem.  I have read this note, 3132 and
3387.  All are reporting the same error, as best I can tell.  Also, as
best I can tell, this error is caused by a bug in the code that is not
being properly identified by the compiler.  Fixing the bug makes the
problem go away.  However, it appears that in each case, the bug is
a little different.  Is this correct?

If so, can someone provide some pointers as to what to look for in the
code?  If you're compiling a large program, and only know that there's
something wrong with it, it really would help to know something(s)
specific to look for.

Thanks

Jerry 
U.S. CSC 
2987.6SPECXN::DERAMODan D'EramoThu Apr 03 1997 11:4721
	If the problem is as described in .2
        
class C { int f; };
int C::f() { return 0; }

        then look for a class definition that left the parentheses out
        of a member function declaration...
        
        	class MyClass // ...
        	{
        	    // next line should be
        	    //     return_type member_function_name(/* args, if any */);
        	    return_type member_function_name; // oops! no parens!
        	};
        
        ...followed by trying to define that member function...
        
        	return_type MyClass::member_function_name() { /* ... */ }
        
        Dan