Modify

Opened 6 years ago

Last modified 5 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@… 6 years ago.
PreprocessorOutput? (stripped)

Download all attachments as: .zip

Change History (8)

comment:1 Changed 6 years ago by Dave Abrahams

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

Changed 6 years ago by SergK13Stuff@…

Attachment: BoostPreprocessor.i added

PreprocessorOutput? (stripped)

comment:2 Changed 6 years ago by SergK13Stuff@…

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 Changed 6 years ago by Dave Abrahams

Description: modified (diff)

comment:4 Changed 6 years ago by Dr. Sergey Kiselev <SergK13@…>

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.

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

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 Changed 6 years ago by Dave Abrahams

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 Changed 5 years ago by Dave Abrahams

Owner: changed from Dave Abrahams to jeffrey.hellrung

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain jeffrey.hellrung.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.