Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation issue when using class with default constructor with random ranlux on MSVC #3631

Closed
yhmtsai opened this issue Oct 27, 2021 · 1 comment
Assignees
Labels

Comments

@yhmtsai
Copy link

yhmtsai commented Oct 27, 2021

Describe the bug

When creating a class with default constructor (not printable with <<), using gtest with creating ranlux throws compliation error.
If the test file does not contain ranlux or use a different random generator, all compilation is passed.

Steps to reproduce the bug

I put those codes in https://github.com/yhmtsai/gtest_with_random_on_msvc (failed) with github action
pass without ranlux in yhmtsai/gtest_with_random_on_msvc@7fa8613

A dummy class with default constructor and ranlux give the error.

Does the bug persist in the most recent commit?

Yes

What operating system and version are you using?

Windows 10

What compiler and version are you using?

(Microsoft (R) C/C++ Optimizing Compiler Version 19.27.29112 for x64)
or the MSVC compiler in github action

What build system are you using?

cmake version 3.16.5

Additional context
It may be related to #3311
Quick workaround for others facing this issue: do not use ranlux48/ranlux24 might help

@asoffer
Copy link
Contributor

asoffer commented Nov 1, 2021

Thanks so much for bringing this to our attention. This does seem to be the same as #3311 as you mentioned. I'm going to close this bug and continue the discussion there.

@asoffer asoffer closed this as completed Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants