preprocessor: scanning for :: token was missing
authorMatthias Braun <matze@braunis.de>
Sun, 27 May 2012 22:10:21 +0000 (00:10 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Wed, 20 Jun 2012 19:52:09 +0000 (21:52 +0200)
preprocessor.c

index e1c5d0e..9425292 100644 (file)
@@ -1043,6 +1043,13 @@ digraph_percentcolon:
        case ':':
                MAYBE_PROLOG
                MAYBE_DIGRAPH('>', ']', symbol_colongreater)
+               case ':':
+                       if (c_mode & _CXX) {
+                               next_char();
+                               set_punctuator(T_COLONCOLON);
+                               return;
+                       }
+                       /* FALLTHROUGH */
                ELSE(':')
        case '=':
                MAYBE_PROLOG