# MSVC gone crazy?

This topic is 3998 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hello MSVC (2005 express) just got completely crazy. It now keeps outputting dumb errors when I compile including : 1- Error C3872: '0xa0': this character is not allowed in an identifier 2- Error C3646: 'const ' : unknown override specifier 3- Error C3646: ' ' : unknown override specifier I've looked up an ASCII table and 0xa0 corresponds to "À", but with the sign in the opposite direction. The most surprising error is still the whitespace which is an unknown override specifier. Anyways, here's the faulty code :
// gamestate.hpp
// I trimmed down E-V-E-R-Y-T-H-I-N-G else.
class GameState
{
public:
virtual ~GameState() {}

virtual bool propagateUpdate() const = 0; // Errors #1 and #2, "const" not syntax colored
virtual bool propagateRender() const = 0; // Errors #1 and #2, "const" not syntax colored
};

// dummy.cpp
// Only for bug isolation purposes
#include "gamestate.hpp"


I can't wrap my head around these errors, they seem completely crazy to me. Can anyone make sense of them?

##### Share on other sites
Damned... I've hex-edited the file and it seems that the whitespace between the "const" and the "=" was actually a 0xa0 instead of an all-friendly 0x20. Now the real question comes : how could my spacebar decide to write a 0xa0 instead of a normal ox20 whitespace?

I think I shall never understand this bug o.O

EDIT : I actually might have guessed it with error #2 saying that 'const ' ("const" followed by a seemingly innocent whitespace) was an unknown override specifier.

##### Share on other sites
Create an entirely new project and retype the affected files by hand. If that doesn't work, then I guess you're screwed. :)

EDIT: Can you simply replace the affected spaces? Does all of your space bar pressed put out 0xa0?

##### Share on other sites
Has every single 0x20 in your files turned into 0xa0? If it's just those two, could it be data corruption... 0xa0 is only 1 bit off from 0x20.

• 11
• 19
• 12
• 34
• 9
• ### Forum Statistics

• Total Topics
631398
• Total Posts
2999838
×

## Important Information

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!