Quantcast

g++ version 6.2.0 can't compile 4.8 code

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

g++ version 6.2.0 can't compile 4.8 code

Jens Kallup
Hello Mike,

thank You for the last posting to me.
Today, I have the following Problem:
(No Makefile changes of my project):
Yesterday, I download, compile, and install the g++ Version 6.2.0.
also I update from 4.8. to 6.2.
Under 4.8, I had no problems, but nowadays, with version 6.2,
I get error messages:

https://paste.fedoraproject.org/490630/60554148/

with this code:

https://paste.fedoraproject.org/490632/60630148/

I know, You want a minimal testcase, but I think, the thing is the
structure of boost qi?

Can you have a look?

Thank You very much
Jens


------------------------------------------------------------------------------
_______________________________________________
Spirit-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/spirit-general
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: g++ version 6.2.0 can't compile 4.8 code

llonesmiz
Jens Kallup wrote
Hello Mike,

thank You for the last posting to me.
Today, I have the following Problem:
(No Makefile changes of my project):
Yesterday, I download, compile, and install the g++ Version 6.2.0.
also I update from 4.8. to 6.2.
Under 4.8, I had no problems, but nowadays, with version 6.2,
I get error messages:

https://paste.fedoraproject.org/490630/60554148/

with this code:

https://paste.fedoraproject.org/490632/60630148/

I know, You want a minimal testcase, but I think, the thing is the
structure of boost qi?

Can you have a look?

Thank You very much
Jens
Your problem is not caused by "the structure of boost qi" and is also unrelated to your upgrade to g++ version 6.2.0 since your code fails to compile with the exact same error: "error_invalid_expression". The error message points to this section of the code https://github.com/boostorg/spirit/blob/develop/include/boost/spirit/home/qi/nonterminal/rule.hpp#L177 that explains the problem further. Sadly the error does not point where in your code is the problem, but I can tell you that it is located in your "symbol_def_expr" rule (that reduces the lines you need to inspect to "just" 32).
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: g++ version 6.2.0 can't compile 4.8 code

llonesmiz
llonesmiz wrote
[...]Sadly the error does not point where in your code is the problem[...]
I was actually wrong, the error does in fact point to the line where "symbol_def_expr" begins.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: g++ version 6.2.0 can't compile 4.8 code

Jens Kallup

Am 28.11.2016 um 12:09 schrieb llonesmiz:
> llonesmiz wrote
>> [...]Sadly the error does not point where in your code is the problem[...]
> I was actually wrong, the error does in fact point to the line where
> "symbol_def_expr" begins.

Hi,

thank You for your helping hand!
Just for clearify, here the code, that make all possible:

Jens

             symbol_def_if %= symbol_def_if_inner;
             symbol_def_if_inner %=
             symbol_if > (expression)
             >> *(
                 (symbol_alpha -(skipp_keywords) > '=' > symbol_expr ) |
                 (symbol_def_stmts)
             >> *(symbol_def_if)
                 )

             >> *(
                 (symbol_else
             >> *(
                 (symbol_alpha -(skipp_keywords) > '=' > symbol_expr ) |
                 (symbol_def_stmts)
             >> *(symbol_def_if)
                 )))
             >    symbol_endif
             ;

------------------------------------------------------------------------------
_______________________________________________
Spirit-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/spirit-general
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: g++ version 6.2.0 can't compile 4.8 code

sehe
On 28-11-16 15:59, Jens Kallup wrote:
> Just for clearify, here the code, that make all possible:

I'm not sure what this clarifies.


------------------------------------------------------------------------------
_______________________________________________
Spirit-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/spirit-general
Loading...