bugCERTI - Bugs: bug #46472, MSVC 14 (VS 2015) complains about...

 
 

bug #46472: MSVC 14 (VS 2015) complains about ostream << ostream func(ostream)

Submitter:  None
Submitted:  Wed 18 Nov 2015 10:57:21 AM UTC
   
 
Category:  CERTI Severity:  * 2 - Minor
Item Group:  Compilation error Status:  None
Privacy:  Public Assigned to:  erk
Open/Closed:  Open Release:  * GIT-master
Reproducibility:  Every Time Fixed Release:  Unknown
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 19 Nov 2015 12:09:43 PM UTC, comment #2: 

Hi Eric,

Thanks for the quick follow-up, Im afraid that im not sure what would be the correct solution for fixing this problem (especially if it is caused by the CXX11 standard changing behaviour).

At least for now I can compile and use Certi (provided the binaries work of course, didnt test that yet).

Joris Goosen <jorisgoosen>
Wed 18 Nov 2015 03:49:00 PM UTC, comment #1: 

Hi Joris,

Thanks this issues seems to be related by C++11 default support
in recent Visual Studio.

see ML thread.
http://lists.nongnu.org/archive/html/certi-devel/2015-11/msg00013.html

I'm trying ti handle that.
By the way [N]M_Classes.[hc] are generated files.
Have a look at certi/scripts/GenerateMessage.py
or the rule to call that in
certi/scripts/CMakeLists.txt

Eric NOULARD <erk>
Group administrator
Wed 18 Nov 2015 10:57:21 AM UTC, original submission:  

Compiler complains about functions like (std::ostream& NM_FOM_Dimension::show(std::ostream& out)) when
 they are the right-hand value for an << operator.

It also seems superfluous to do this, as in all cases the ostream in which was "written" by show() was the same as the parameter "out". It would be better to make this a void function is my guess.
See attached patch for a fix that shouldn't change any functionality.

Reply: Joris.Goosen(at)Incontrolsim.com

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #35494:  0001-Fix-for-MSVC-14-VS-2015.patch added by None (9KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jorisgoosen (Posted a comment)
  • -email is unavailable- added by erk (Posted a comment)
  • -email is unavailable- added by erk (Manually Added by Eric for automatic follow-up)
  •  

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-11-18 erk Assigned toNone erk
        Carbon-Copy- Added -email is unavailable-
    2015-11-18 None Attached File- Added 0001-Fix-for-MSVC-14-VS-2015.patch, #35494

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code