-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{ parsing problem #3
Comments
It would sure help if you would provide a minimized version of the input that produces the same error. If this is challenging, consider using http://delta.tigris.org/ . |
It would sure help if you would provide a minimized version of the On Sat, May 21, 2011 at 6:44 AM, sebbu2
|
#include <stdio.h> this code works if i run qual directly, but doesn't work if i run g++ -E before (it show another bug on a throw directive). |
No, you don't understand. I need to see exactly the raw input to Do whatever you do, including running it through the preprocessor, Please put yourself in my position and think about the fact that I On Sat, May 21, 2011 at 1:48 PM, sebbu2
|
# 1 "test2.cpp" this code is the exact portion which show the bug i found |
typedef struct {
}
__mbstate_t;
namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) {
}
namespace std __attribute__ ((__visibility__ ("default"))) {
template<class _Sp, class _Tp> struct __traitor {
};
template<typename _Tp> struct __is_integer {
};
template<typename _Tp> struct __is_floating {
};
template<typename _Tp> struct __is_pointer {
};
template<typename _Tp> struct __is_arithmetic : public __traitor<__is_integer<_Tp>, __is_floating<_Tp> > {
};
template<typename _Tp> struct __is_scalar : public __traitor<__is_arithmetic<_Tp>, __is_pointer<_Tp> > {
};
}
namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) {
template<bool, typename> struct __enable_if {
};
}
namespace std __attribute__ ((__visibility__ ("default"))) {
template<typename _OutputIterator, typename _Size, typename _Tp> inline typename __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, _OutputIterator>::__type __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value) {
const _Tp __tmp = __value;
for (__decltype(__n + 0) __niter = __n;
__niter > 0;
--__niter, ++__first) *__first = __tmp;
}
} This C++ code (apprently using some C++0x features, but coming only from libstdc++, not user code) doesn't parse using oink. |
My version of gcc compiles this just fine: namespace std g++ --version Please send me a file that does not compile and the output when you On Sat, May 21, 2011 at 1:53 PM, sebbu2
|
Ah, sorry. Your probably meant that oink has a problem with it. I ../oink -fo-print-stages sebbu2.cc On Sat, May 21, 2011 at 1:53 PM, sebbu2
|
First, you can't take the raw output of delta and just send it to me. Second, when you used delta, did you be sure to do a controlled Daniel On Fri, May 27, 2011 at 2:30 AM, sebbu2
|
I tried to compile a (big, c++) project, and got that PARSING error in a standard C++ header:
In state 1138, I expected one of these tokens:
try, {,
/usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h:154:1: Parse error (state 1138) at {
I think there is some inconsistencies between the #define in ast and elkhound
The text was updated successfully, but these errors were encountered: