Open Bug 1341500 Opened 7 years ago Updated 2 months ago

Build fails with MSVC when a source file has #include <type_traits> at its top

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(Not tracked)

People

(Reporter: xidorn, Unassigned)

References

Details

To reproduce this issue, creating a cpp file with one line
> #include <type_traits>
and then include it in SOURCES (not UNIFIED_SOURCES) in moz.build, and build with MSVC.

The build would fail with lots of syntax error inside system header <utility>.

See bug 1331102 and bug 981264.

Adding
> #include <new>
before that line works around this issue.
Summary: Build fails when a source file has #include <type_traits> at its top → Build fails with MSVC when a source file has #include <type_traits> at its top
Product: Core → Firefox Build System
Severity: normal → S3
See Also: → 900040
See Also: → 1840554
You need to log in before you can comment on or make changes to this bug.