helpMySQL++ - Support: sr #2668, Couldn't build './ssx/parsev2.cpp'...

 
 
Show feedback again

sr #2668: Couldn't build './ssx/parsev2.cpp' with Oracle Solaris Studio 12

Submitted by:  Arjan Hulsbosch <ahulsbos>
Submitted on:  Wed 15 Dec 2010 02:01:43 PM UTC  
 
Category: NonePriority: 5 - Normal
Severity: 3 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenOperating System: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 15 Dec 2010 02:01:43 PM UTC, original submission:

Trying to compile the file './ssx/parsev2.cpp' results in the following errors:

/home/ahulsbos/scratch/src/mysqlpp/bk-deps CC -c -o ssqls2parse_parsev2.o -Ilib -I. -I/opt/pd/mysql5/include -g ./ssx/parsev2.cpp
"./ssx/parsev2.cpp", line 182: Error: Operand for operator "++" must be an lvalue.
"./ssx/parsev2.cpp", line 372: Error: Operand for operator "++" must be an lvalue.
"./ssx/parsev2.cpp", line 480: Error: Operand for operator "++" must be an lvalue.
"./ssx/parsev2.cpp", line 480: Error: Operand for operator "++" must be an lvalue.
"./ssx/parsev2.cpp", line 617: Error: Operand for operator "++" must be an lvalue.
5 Error(s) detected.

Apparently the compiler doesn't create a temporary iterator that can be incremented before assigning it. The attached patch fixes the problems, but it would be wise to have a better look at it to see that it really does what should be done, especially the issue at line 480.

A run of dtest on a Linux/GCC system with this patch is successful.

Arjan Hulsbosch <ahulsbos>

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #11589:  parsev2.cpp.patch added by ahulsbos (1kB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by ahulsbos (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 15 Dec 2010 02:01:43 PM UTCahulsbosAttached File-=>Added parsev2.cpp.patch, #11589
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup