[PATCH] DebugInfo: Emit info for constant expressions in template arguments

David Majnemer david.majnemer at gmail.com
Tue Aug 20 23:41:49 PDT 2013

  No, they 'X' and 'G' are not the same in GDB.

  (gdb) p X
  $1 = (const _GUID *) 0x4005f0 <_GUID_12345678_1234_1234_1234_1234567890ab>
  (gdb) p G
  $2 = <optimized out>

Comment at: test/CodeGenCXX/debug-info-template.cpp:102
@@ +101,3 @@
+struct __declspec(uuid("{12345678-1234-1234-1234-1234567890ab}")) uuid;
+template <const struct _GUID *>
+struct tmpl_guid {
David Blaikie wrote:
> Do you need the 'struct' keyword here? I assume not.
We do, otherwise we error out with "error: unknown type name '_GUID'"


More information about the cfe-commits mailing list