Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. Bug in VC++.net 2002: nested structs

Bug in VC++.net 2002: nested structs

Scheduled Pinned Locked Moved Managed C++/CLI
helpcsharpc++question
2 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    VizOne
    wrote on last edited by
    #1

    Hi! I have a class that contains several nested structs: public __abstract __gc class Foo { public: __value struct Struct1 { /** }; __value struct Struct2 { /** }; __value struct Struct3 { /** }; __value struct Struct4 { /** }; [...] }; However, that maximum number of nested structs seems to be 17. Whenever I add the 18ths struct, I get an internal compiler error. Is this a confirmed bug? Regards, Andre

    P 1 Reply Last reply
    0
    • V VizOne

      Hi! I have a class that contains several nested structs: public __abstract __gc class Foo { public: __value struct Struct1 { /** }; __value struct Struct2 { /** }; __value struct Struct3 { /** }; __value struct Struct4 { /** }; [...] }; However, that maximum number of nested structs seems to be 17. Whenever I add the 18ths struct, I get an internal compiler error. Is this a confirmed bug? Regards, Andre

      P Offline
      P Offline
      Paul Selormey
      wrote on last edited by
      #2

      Just test 21 nested structs on VS.NET 2003 Final Beta. It compiles without any problem. Frankly, working with MC++ is sometimes frustrating. The compiler seems to be a work in progress. Consider the ff, for instance:

      System::String __gc* strTmp1 = String::Format(S"{0}, {1}, {2}",
      S"0", S"1", S"2");

      System::String __gc* strTmp2 = String::Format(S"{0}, {1}, {2}, {3}",
      S"0", S"1", S"2", S"3");

      The second strTmp2 will not compile simply because the MC++ does not have support for variable parameters, while C# and even VB.NET supports it. Best regards, Paul. Jesus Christ is LOVE! Please tell somebody.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups