Fixed problem with reference return types.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@679 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-08-19 22:17:46 +00:00
commit 0ca0e356a3

View file

@ -1560,7 +1560,7 @@ declaration : ID { $$.id = $1;
}
| AND ID {
$$.id = $2;
$$.is_pointer = 1;
$$.is_pointer = 0;
$$.is_reference = 1;
if (!CPlusPlus) {
Printf(stderr,"%s : Line %d. Warning. Use of C++ Reference detected. Use the -c++ option.\n", input_file, line_number);