Opened 11 years ago

Last modified 10 years ago

#5858 new Bugs

Issue to compile in VS 2008, VC 9.0.30729.1 SP without Microsoft extensions

Reported by: Dr. Sergey Kiselev <SergK13@…> Owned by: jeffrey.hellrung
Milestone: To Be Determined Component: iterator
Version: Boost 1.35.0 Severity: Problem
Keywords: BOOST_CONCEPT_ASSERT Cc: SergK13@…

Description (last modified by Dave Abrahams)

The issue appears first in 1.35.0 version. The version 1.34.1 is still OK. It is only appears when microsoft extentions are disabled. The library is "Iterator". For version 1.35.1: the file is iterator_concepts.hpp, line nuber is 136:

BOOST_concept(SinglePassIterator, (Iterator))
    : IncrementableIterator <Iterator>
    , boost::EqualityComparable <Iterator>

  {
--->>>      BOOST_CONCEPT_ASSERT((
          boost::Convertible<
             BOOST_DEDUCED_TYPENAME SinglePassIterator::traversal_category
           , boost::single_pass_traversal_tag
          > ));
  };

The first line of error message is \boost\include\boost-1_35_0\boost/iterator/iterator_concepts.hpp(136) : error C2146: syntax error : missing ',' before identifier 'traversal_category'

Attachments (1)

BoostPreprocessor.i (14.4 KB ) - added by SergK13Stuff@… 11 years ago.
PreprocessorOutput (stripped)

Download all attachments as: .zip

Change History (8)

comment:1 by Dave Abrahams, 11 years ago

IMO this is almost certainly a compiler bug, but for us to be sure it would help if you could post the preprocessor output.

by SergK13Stuff@…, 11 years ago

Attachment: BoostPreprocessor.i added

PreprocessorOutput (stripped)

comment:2 by SergK13Stuff@…, 11 years ago

I have posted preprocessor output which has been generated on boost version 1.35.0 and 9.0.30729.1 SP .NET 3.5 SP1 without Microsoft extensions. I have changed the flag in settings: C/C++/Preprocessor/Generate Preprocessor File to "With Line Numbers (/P)" in order to produce this file. After that file has been stripped off all information which is irrelevant I think. I just leave what is connected to the problem. However when I enable this flag my cpp files is compiled without any errors. Do you have any suggestions?

comment:3 by Dave Abrahams, 11 years ago

Description: modified (diff)

comment:4 by Dr. Sergey Kiselev <SergK13@…>, 11 years ago

The same error with Visual Studio 2010 (10.0.40219.1 SP1Rel) .NET (4.0.30319 SP1Rel)! I have tested it with 1.47.0 boost, but this bug should be started from 1.35.0.

in reply to:  1 comment:5 by Dr. Sergey Kiselev <SergK13@…>, 11 years ago

Replying to dave:

IMO this is almost certainly a compiler bug, but for us to be sure it would help if you could post the preprocessor output.

Dave,

I have posted additional information and preprocessor output. Any estimates when is it going to be fixed?

comment:6 by Dave Abrahams, 11 years ago

No estimate, sorry. It seems highly unlikely that this problem has anything to do with Boost code, as there are no compiler-specific implementation details in BOOST_CONCEPT_ASSERT, so I can't give a very high priority to looking at this.

comment:7 by Dave Abrahams, 10 years ago

Owner: changed from Dave Abrahams to jeffrey.hellrung
Note: See TracTickets for help on using tickets.