XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.10
    • Fix Version/s: 6.0
    • Component/s: Parser
    • Labels:
      None

      Description

      Currently due to changes for CPP-1368 x<y>>z is always parsed as "x less than (y right shift z)", whereas it can be "template-id x<y> greater than z":

      namespace first {
        int x, y, z;
      
        void test() {
          x<y>>z;
        }
      }
      
      namespace second {
        template<typename T> T x = T(5);
        typedef int y;
        int z;
      
        void test() {
          x<y>>z;
        }
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              evgeny.mandrikov Evgeny Mandrikov
              Reporter:
              evgeny.mandrikov Evgeny Mandrikov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: