mainBison - Support: sr #110032, For C++98 stack_symbol_type...

 
 

sr #110032: For C++98 stack_symbol_type defines only non-const operator=

Submitter:  None
Submitted:  Wed 25 Sep 2019 04:38:56 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  akim
Originator Email:  -email is unavailable- Open/Closed:  Closed
Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 28 Sep 2019 06:13:15 AM UTC, comment #1: 
Akim Demaille <akim>
Group administrator
Wed 25 Sep 2019 04:38:56 PM UTC, original submission:  

Setting the output language to C++ and compiling the output with a C++98 compiler, compilation fails on the IAR C++ compiler (version 6.70.2.6274).

The std::vector class of the IAR compiler relies on operator= in its push_back implementation. Defining 'stack_symbol_type &operator=(stack_symbol_type &)' stops the compiler implicitly generating operator= for other arguments. Specifically 'const stack_symbol_type &operator=(const stack_symbol_type &) is missing which is needed by std::vector::push_back.

The lalr1.cc skeleton needs to be changed to also define the const operator= for stack_symbol_type (and also others like sematic_type when using variants)

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #47570:  PropertyNameParser.y added by None (800B - application/octet-stream)
file #47571:  iar_error.txt added by None (2KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by akim (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-09-28 akim StatusNone Done
        Assigned toNone akim
        Open/ClosedOpen Closed
    2019-09-25 None Attached File- Added PropertyNameParser.y, #47570
        Attached File- Added iar_error.txt, #47571

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code