As someone who knows all discovered R/B/Y glitches by heart (GlitchCity forums used to be a homepage for me), I can assure you that is no new glitch. You triggered a glitch nicknamed "Super Glitch", caused by using certain glitch moves, such as "--" and "TM05" (actual attack name, not the technical machine itself). It's easily recognizable by it's distinct effect of burning and freezing the opponent, boosting up its HP and killing it very slowly with a burn, and also filling your party with junk, glitched up Pokémon.6) clicking the attack that finally works will lower enemy health to red and burns him. This means the glitch works.
7) switch to any pokemon (I use mankey). you wont get hurt, for some reason glitch shit happens and the pokemon will be called trainer mew with some #'s.
8) the enemy will be frozen solid! though it has burn effect and will die.
9) when the burn takes effect, the health bar expands, go to full health and dies slowly.
All technicalities aside, that glitch is not new, and it can (and will) corrupt your game if you save. Hell, there've been reports of it corrupting the game even without saving. Stuff of nightmares.
Keep away from glitches like those (same for the ZZAZZ glitch), it can break your VC game. I've corrupted my Pokémon Yellow VC save 3 times already.