[Prev][Next][Index]

sage unhappy about data member forward defs




The pc++ parser barfs at the following, which I think is valid:

	class foo {
	public:
	  void *ILUMostSpecificObject () { return (this->ILUMostSpecificObj); };
	  void  ILUSetMostSpecificObject( void *o ) { this->ILUMostSpecificObj = o; };
	private:
	  void *ILUMostSpecificObj;
	};
	
	main()
	{
	}

with the error message:

	blackrabbit(436) % pc++ bug2.pc
	Error on line 3 of bug2.pc:  Internal Err 'This' class/collection missing)
	Error in pc++ while executing:
	------->  pC++2dep  TEMP_pC++.C

but is happy with the equivalent code:

	class foo {
	  void *ILUMostSpecificObj;
	public:	
	  void *ILUMostSpecificObject () { return (this->ILUMostSpecificObj); };
	  void  ILUSetMostSpecificObject( void *o ) { this->ILUMostSpecificObj = o; };
	};

	main()
	{
	}

Looks like the forward declaration of the data member causes a problem.

--lars