Umm, location_type is typdefed in the yy::parser class in
_NscLib/NscParser.hpp:71: typedef location location_type;
in my tree. Not sure what you are looking at if it's not there.
heh... mine's COMPLETELY different at line 71 -
#if !defined _Noreturn \
&& (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112)
# if defined _MSC_VER && 1200 <= _MSC_VER
# define _Noreturn __declspec (noreturn)
# else
# define _Noreturn YY_ATTRIBUTE ((__noreturn__))
# endif
#endif
Take a look at the NscParser.hpp file your bison is generating and see if there is anything related to location. Could try changing the type in that routine to
yy::location&
nothing that obvious. it looks like they've completely changed the syntax, if not the paradigm itself. they mention semantic_type and token_type frequently, and a slew of other types too, obviously, but no more return_type anywhere. no references to location anywhere, and arbitrarily foreshortening location_type to location didn't fix it. '> it looks like location is available only indirectly, as though it's now subsumed by the symbol type. but here i'm getting in way over my head.
You may have more luck if you try to get your cygwin to have an older version of bison.
i was able to compile bison 2.6 (from 2012) cleanly on my machine, but it returned exactly the same error as 3.0.4. i then tried 2.0, which dates from 2005 -- same problem.
what version of bison are you using?
I have not used later versions of bison. But if I get some time I will try it.
you can get all releases here -
http://ftp.gnu.org/gnu/bison
you may want to get the latest-n-greatest even if you don't want to update the nsscomp source, then for no other reason than to see what it's actually generating, for amusement's (?) sake.