Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » problems compiling nightly on MSVS2019/2017 nested lambda's (Compiles errors on "nested lambda's")
icon5.gif  problems compiling nightly on MSVS2019/2017 nested lambda's [message #56861] Thu, 22 April 2021 15:40 Go to next message
Typhoor is currently offline  Typhoor
Messages: 14
Registered: October 2012
Location: Erlangen, Germany
Promising Member
Hi fellow developers,
Am I the only one having problems on the "nightly" github code with MSVS 2019/2019?
Since early of the year I get compiling errors on lambdas in lambdas with MSVS 2019/2017 (debug/release)
error C2059: syntax error: '.'
error C2143; syntax error: missing ';' before '{'
error C2059: syntax error: ')'


In two files:
uppsrc\ide\Designers\md.cpp line 18 in "IdeMDDes::IdeMDDes()"
editor << [=] { tm.KillSet(250, [=] { Preview(); }); };

and uppsrc\ide\UppHub.cpp line 85 in "UppHubDlg::UppHubDlg()"
tm.KillPost([=] { UrlLoading(); });
included in
 list.WhenSel = [=] { ... }

I checked all over forum but couldn't find a hit.

Has support of MSVS been discontinued ?
I'm using newest MSVS compilers (VS19 = 16.9.4)

Thanx for a hint...
Ralph
Re: problems compiling nightly on MSVS2019/2017 nested lambda's [message #56882 is a reply to message #56861] Sun, 25 April 2021 08:13 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Thank you! We completely missed that (CLANG is too good to use MSVC...).

It looks like compiler bug - I guess that MSVC finds struct tm and somehow tries to use it in lambda as variable. It is easy to workaround though (just renamed tm to delay).

Trunk should now compile..

Miek

[Updated on: Sun, 25 April 2021 08:13]

Report message to a moderator

Previous Topic: U++ and Vulkan SDK
Next Topic: Using BLITZ in release mode CLANG
Goto Forum:
  


Current Time: Wed Apr 24 22:59:10 CEST 2024

Total time taken to generate the page: 0.02445 seconds