[MDEV-21070] Build Error in MSVC Created: 2019-11-18  Updated: 2019-11-18  Resolved: 2019-11-18

Status: Closed
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 10.4.10
Fix Version/s: N/A

Type: Bug Priority: Minor
Reporter: Horimoto Yasuhiro Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Environment:

OS:Windows Server 2012 R2(on AppVeyor)
Compiler:

  • cmake version 3.15.5
  • Microsoft Visual Studio 14.0(on AppVeyor)
  • The C compiler identification is MSVC 19.0.24241.7
  • C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
  • The CXX compiler identification is MSVC 19.0.24241.7
  • CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe

Issue Links:
Duplicate
duplicates MDEV-20972 `or` alterative operator breaking win... Closed

 Description   

MariaDB 10.4.10 occurs the following build error when build it by MSVC++.

```text
C:\projects\source\sql\item_subselect.cc(126): error C2146: syntax error: missing ')' before identifier 'or' [C:\projects\build\sql\sql.vcxproj]
```

The cause of this error to use "or" in the following code.

https://github.com/MariaDB/server/commit/b44171428ab2ea25db82f7cd27349e67812e4921#diff-002eab3ce25a9edf12c07fa4999ea6b4R126

Normally, MSVC++ can't interpret "or".
Therefore the above code is a syntax error.



 Comments   
Comment by Horimoto Yasuhiro [ 2019-11-18 ]

Ah...
I'm sorry. This issue is duplicate MDEV-20972.

Generated at Thu Feb 08 09:04:22 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.